SharePoint2007Provider::GetUsersFromRole

This procedure returns information about the collection of users in the specified role.

Arguments

Input Arguments Required Description

<target>

Yes

The URL of the Windows SharePoint Services administration site.

<siteGUID>

Yes

The globally unique identifier (GUID) of the Windows SharePoint Services site collection.

<subSiteGUID>

Yes

The GUID of the subsite.

<roleName>

Yes

A string that contains the name of the role.

Remarks

No remarks.

Sample Code

Example XML Request

<request> 
   <procedure> 
      <execute namespace="SharePoint2007Provider" procedure="GetUsersFromRole" impersonate="1"> 
         <executeData> 
            <target>https://WSSFE:8080</target> 
            <siteGUID>485ff5ae-f36b-4017-a76c-75c3a1d7f745</siteGUID> 
            <subSiteGUID>eb7e5d53-3ba1-48d5-8e18-f5d55f0662d2</subSiteGUID> 
            <roleName>Full Control</roleName> 
         </executeData> 
         <after source="executeData" destination="data" mode="merge" /> 
      </execute> 
   </procedure> 
</request>

Example XML Response

An array of role information in the format shown below:

<response> 
   <data> 
      <users> 
         <user id="1" sid="S-1-5-21-3511655109-3096873398-1435752672-500" name="Administrator" loginName="FABRIKAM\administrator" email="Administrator@Fabrikam.Com" notes="" isSiteAdmin="true" isDomainGroup="false" /> 
      </users> 
   </data> 
</response>

Applies To

SharePoint 2007 Provider for:

  • Hosted Messaging and Collaboration version 4.5

  • Hosted Messaging and Collaboration version 4.0

See also

Tasks

SharePoint2007Provider::AddUsersToRole
SharePoint2007Provider::RemoveUsersFromRole