![]() | |||||
![]() ![]() ![]() ![]() ![]() |
Use Site Administration to assign a user to a site group
Use the command line to assign a user to a site group
You can assign a user to a site group from the command line by using the userrole operation. The userrole operation takes the url, userlogin, role, and add or delete parameters. Use the following syntax to add a user to the Contributor site group:
stsadm.exe -o userrole –url http://server_name/site_name –userlogin DOMAIN_name\User_name
-role contributor -add
Note This does not remove the user from any site groups to which he or she previously belonged.