Userrole: Stsadm operation (Windows SharePoint Services)
Updated: June 14, 2007
Applies To: Windows SharePoint Services 3.0
Topic Last Modified: 2007-06-08
Adds or deletes a user to or from a permission level on a site.
stsadm -o userrole
-url <URL name>
-userlogin <user name>
-role <role name>
[-add]
[-delete]
Parameter | Value | Required? | Description |
url | A valid URL, such as http://server_name | Yes | The URL of the site to which the user role is being added |
userlogin | A valid user name in any one of following forms:
| Yes | The login information of the user. It can be a SharePoint or Windows NT group name. |
role | A valid permission level, such as Full Control, Read, Limited Access, Design, or Contribute | Yes | The permission level that is assigned to the user |
add | <none> | No. Either the add or delete parameter is specified. If nothing is specified, the default value is “add.” | Allows the user to add a specified user to the permission level. |
delete | <none> | No. Either the add or delete parameter is specified. If nothing is specified, the default value is “add.” | Allows the user to delete a specified user from the permission level. |