SharePoint2007Provider::AddGroupToRole

This procedure adds a group to the specified role. This method implements rollback.

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 subsite.

<roleName>

Yes

The name of the role to add the group to.

<groupName>

Yes

The name of the group to add to the specified role.

Remarks

No remarks.

Sample Code

Example XML Request

<request> 
   <procedure> 
      <execute namespace="SharePoint2007Provider" procedure="AddGroupToRole" impersonate="1"> 
         <executeData> 
            <target>https://WSSFE:8080</target> 
            <siteGUID>18c0723a-8e76-4e41-b1f8-4b5fef0a31b4</siteGUID> 
            <subSiteGUID>189f6b51-217c-462b-b1d4-752a4861594c</subSiteGUID> 
            <roleName>Full Control</roleName> 
            <groupName>SPNSTestGroup</groupName> 
         </executeData> 
      </execute> 
   </procedure> 
</request> 

Applies To

SharePoint 2007 Provider for:

  • Hosted Messaging and Collaboration version 4.5

  • Hosted Messaging and Collaboration version 4.0

See also

Tasks

SharePoint2007Provider::RemoveGroupFromRole