Share via


SharePoint Provider::GetRoleInfo

The GetRoleInfo method returns information about the specified collection of site groups for the current site.

Arguments

Input Arguments Required Description

<target>

Yes

The SharePoint site to query.

<roles>

Yes

The list of roles to query.

Remarks

No remarks.

Sample Code

Comments

An array of role info in the format shown below.

Example XML Request

<request> 
    <procedure> 
 
        <execute namespace="WSS Provider" procedure="GetRoleInfo" 
 
                   impersonate="1"> 
 
            <executeData> 
 
                <target>https://raven003/sites/test</target> 
 
                <Roles> 
 
                    <Role RoleName="TestRole" /> 
 
                </Roles> 
 
            </executeData> 
 
        </execute> 
 
    </procedure> 
 
</request> 

Example XML Response

<executeData> 
    <target>https://raven003/sites/test</target> 
 
    <Roles> 
 
        <Role ID="1073741834" Name="TestRole" Description="A test role" Type="0" /> 
 
    </Roles> 
 
</executeData> 

Typical C# Usage

No typical C# usage.

Applies To

Windows SharePoint Services Provider API for

  • Hosted Messaging and Collaboration version 3.5

  • Hosted Messaging and Collaboration version 3.0

  • Windows-based Hosting version 4.5

  • Windows-based Hosting version 4.0

  • Windows-based Hosting version 3.5

  • Windows-based Hosting for Applications version 1.0

See also

Tasks

SharePoint Provider::UpdateRoleInfo