SharePoint2007Provider::GetRolesFromUser
This procedure returns information about the collection of roles of which the specified user is a member.
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. |
<userLoginName> |
Yes |
A string that contains the user's login name. |
Remarks
No remarks.
Sample Code
Example XML Request
<request>
<procedure>
<execute namespace="SharePoint2007Provider" procedure="GetRolesFromUser" impersonate="1">
<executeData>
<target>https://WSSFE:8080</target>
<siteGUID>64d4d5bb-4906-4ca3-8257-bb200ab0acf8</siteGUID>
<subSiteGUID>551a857e-2f03-4d03-8fa3-ac2a4c9844be</subSiteGUID>
<userLoginName>Fabrikam\Administrator</userLoginName>
</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>
<roles>
<role id="1073741829" name="Full Control" description="Has full control." type="Administrator" />
<role id="1073741825" name="Limited Access" description="Can view specific lists, document libraries, list items, folders, or documents when given permissions." type="Guest" />
</roles>
</data>
</response>
Applies To
Hosted Messaging and Collaboration version 4.5
Hosted Messaging and Collaboration version 4.0
See also
Tasks
SharePoint2007Provider::AddUsersToRole
SharePoint2007Provider::RemoveUsersFromRole