Share via


SharePoint Provider::AddGroupToRole

This procedure adds a cross-site group to the specified role (site group). This method implements rollback.

Arguments

Input Arguments Required Description

<target>

Yes

SharePoint site containing the role (site group) that the cross-site group is to be added to.

<roleName>

Yes

Name of the role to add the cross-site group to.

<groupName>

Yes

Name of the cross-site group to add to the specified role.

Remarks

No remarks.

Sample Code

Example XML Request

<request> 
    <procedure> 
 
        <execute namespace="WSS Provider" procedure="AddGroupToRole" 
 
                   impersonate="1"> 
 
            <executeData> 
 
                <target>https://raven003/sites/test</target> 
 
                <roleName>TestRole</roleName> 
 
                <groupName>TestGroup</groupName> 
 
            </executeData> 
 
        </execute> 
 
    </procedure> 
 
</request> 

Example XML Response

No example XML response.

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::GetGroupsFromRole
SharePoint Provider::GetRolesFromGroup