Getusercollectionfromgroup unauthorized biography
Getusercollectionfromgroup unauthorized biography
Getusercollectionfromgroup unauthorized biography access...
I receive lots of questions about how to limit a Section, a Button, or a View to only users within a specific SharePoint Group. This is absolutely do-able, but a little tricky. The trick is to use the UserGroup.asmx web service, and specifically the GetUserCollectionFromGroup method.
If you're familiar at all with the way that the Secondary Data Connections work in InfoPath, you will realize that the web service will pull in one or more resultant fields into an XML format structure that you can then retrieve with XSL - in other words, the data structure returned looks like and acts like the same as your Primary data source. You can view secondary data sources by going to the Data Source Pane (Fields Pane in 2010), and clicking the dropdown at the top, and choosing your secondary data source.
The problem with the GetUserCollectionFromGroupweb service,
If you're familiar at all with the way that the Secondary Data Connections work in InfoPath, you will realize that the web service will pull in one or more resultant fields into an XML format structure that you can then retrieve with XSL - in other words, the data structure returned looks like and acts like the same as your Primary data source. You can view secondary data sources by going to the Data Source Pane (Fields Pane in 2010), and clicking the dropdown at the top, and choosing your secondary data source.
Data Source Dropdown - InfoPath 2007 | Fields Dropdown - InfoPath 2010 |