SharePoint2007Provider::UpdateWebPermissions
This procedure modifies site-level permissions for the specified collection of existing site groups.
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 sub site. |
<permissions> |
Yes |
The collection of permissions. |
Remarks
This procedure supports rollback.
Permissions which do not correspond to standard Windows SharePoint Services permissions may provoke unpredictable errors from Windows SharePoint Services.
This method does not break permission inheritance automatically. To successfully set permissions on a web the web must first be set to not inherit permissions (if it's a sub web).
This method simply calls UpdateRoleInfo for each role listed.
Use RemoveRole to completely remove a role from the web.
Sample Code
Example XML Request
<request>
<procedure>
<execute namespace="SharePoint2007Provider" procedure="UpdateWebPermissions" impersonate="1">
<executeData>
<target>https://WSSFE:8080</target>
<siteGUID>b7712793-9a3b-4505-a151-5365cea0e5ad</siteGUID>
<subSiteGUID>5795d043-0841-4d09-8d77-3508e319228a</subSiteGUID>
<permissions>
<roles>
<role roleName="Full Control" basePermissions="FullMask" />
</roles>
</permissions>
</executeData>
</execute>
</procedure>
</request>
Applies To
Hosted Messaging and Collaboration version 4.5
Hosted Messaging and Collaboration version 4.0