You are here: Reference Guides > Designer Form Controls (A-Z) > Ws.SharePointUsers

Ws.SharePointUsers

The Ws.SharePointUsers control allows you to retrieve the members of a SharePoint group and display details about them in a repeating table. The repeating table can then be used as a data source for populating a drop-down list, and in conjunction with the Ws.WorkflowParticipant control to assign swimlanes based on the details that are retrieved from the group.

Download example (.wssln file)

** You may use any SharePoint Group available within the Site Collection as long as the SharePoint Group has at least one set of permissions to the FormEx Site.

Ws.SharePointUsers properties

Property

Description

Groups

The name of the group(s) you want to work with.

Site

The SharePoint site containing the group you want to work with.

XPath Email Location

The repeating table field to receive the email addresses retrieved from the group.

XPath Full Name Location

The repeating table field to receive the names retrieved from the group.

Path Group Name Location

The repeating table field that will receive the name of the group.

XPath Login Name Location

The repeating table field to receive the login names retrieved from the group


Configuring the Ws.SharePointUsers control

Back to top

  1. Add a repeating to your form. You will need 1 field in your repeating table per item you want returned.

    Possible Values are:

    • SharePoint Group
    • Login Name
    • Full Name
    • Email Address
  2. Add the Ws.SharePointUsers control to your form and go into its properties. The Ws.SharePointUsers control must be inside your repeating table.

  3. In the Site field, insert the link to your FormEx Site.


  4. In the Groups Field, enter the names of the SharePoint Groups in which you would like to return.

    The Groups section in this control is case sensitive so make sure your Group entry matches exactly how it is displayed in SharePoint. If you have more than one group in which you are returning, you may use a comma-separated list without spaces in between groups.

    Example: CENTRAL Site Administrators, Marc Wilson_s CENTRAL Site Owners

  5. In the XPath Login Name Location field, insert the XPath to the InfoPath field in your form that will be populated with the value of the Login Name.
  6. In your Field Window on the right-hand side of InfoPath, select the field you want and right click.
  7. Select Copy XPath

  8. Go back into the Ws.SharePointUsers properties.
  9. Paste the XPath into the XPath Login Name Location field.

  10. For the XPath Full Name Location, follow the same steps in Step 5 to retrieve the XPath and paste it into the XPath Full Name Location field.
  11. For the XPath Email Location, follow the same steps in Step 5 to retrieve the XPath and paste it into the XPath Email Location field.
  12. For the XPath Group Name Location, follow the same steps in Step 5 to retrieve the XPath and paste it into the XPath Group Name Location field.

Ws.SharePointUsers configuration example

Back to top

Results