SharePoint2007Provider::GetRolesFromWeb

This procedure returns information about the collection of roles for the current site.

Arguments

Input Arguments Required Description

<target>

Yes

The URL of the Windows SharePoint Services administration site.

<siteGUID>

Yes

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

<subSiteGUID>

Yes

The GUID of the sub site.

Remarks

No remarks.

Sample Code

Example XML Request

<request> 
   <procedure> 
      <execute namespace="SharePoint2007Provider" procedure="GetRolesFromWeb" impersonate="1"> 
         <executeData> 
            <target>https://WSSFE:8080</target> 
            <siteGUID>227a61bc-fe26-462e-a2c2-2b185c9463d1</siteGUID> 
            <subSiteGUID>36d957b5-49f2-43dd-8470-54561fd97ea1</subSiteGUID> 
         </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="1073741828" name="Design" description="Can view, add, update, delete, approve, and customize." type="WebDesigner" /> 
         <role id="1073741827" name="Contribute" description="Can view, add, update, and delete." type="Contributor" /> 
         <role id="1073741826" name="Read" description="Can view only." type="Reader" /> 
         <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

SharePoint 2007 Provider for:

  • Hosted Messaging and Collaboration version 4.5

  • Hosted Messaging and Collaboration version 4.0

See also

Tasks

SharePoint2007Provider::GetRolesFromGroup
SharePoint2007Provider::GetRolesFromUser