







Userrole: Stsadm operation (Office SharePoint Server) | |
![]() ![]() |
Stsadm command-line tool (Office SharePoint Server) > Stsadm operations (Office SharePoint Server) > Security: Stsadm operations (Office SharePoint Server) > |
This Office product will reach end of support on October 10, 2017. To stay supported, you will need to upgrade. For more information, see , Resources to help you upgrade your Office 2007 servers and clients.
Operation name: Userrole
Description
Adds or deletes a user to or from a permission level on a site.
Syntax
stsadm -o userrole
-url <URL name>
-userlogin <user name>
-role <role name>
[-add]
[-delete]
Parameters
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. |