Adduser: Stsadm operation (Office SharePoint Server)

From Stsadm

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: Adduser

Description

Adds a user account to the specified site collection and assigns it to the specified group or role. Use the siteadmin parameter to register the user as the site administrator.

Syntax

stsadm -o adduser

   -url <URL name>

   -userlogin <login name>

   -useremail

   -role <role name> / -group <group name>

   -username

   [-siteadmin]

Parameters

Parameter

Value

Required?

Description

url

A valid URL, such as http://server_name

Yes

The URL of the site collection to which the user account is being added

userlogin

A valid user name in the form:

Domain\user_name

For a non-Windows account, a valid user name can be in the form:

providerName:user_name

Yes

A string that contains the user name

useremail

A valid e-mail address in the form:

someone@example.com

Yes

A string that contains the e-mail address of the user

role

A permission level defined for the site, such as Full Control, Design, Contribute, or Read

Yes. Either the role or group parameter is required.

Adds a user to a permission level.

group

A group configured for the site, such as Team Site Members

Yes. Either the role or group parameter is required.

Adds the user to a group.

username

A valid user name, such as "Joe"

Yes

A string that contains the display name of the user

siteadmin

<none>

No

Specifies whether you want to add the user as an administrator to the site collection.