Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

Adduser: Stsadm operation (Windows SharePoint Services)

SharePoint 2007

Updated: June 14, 2007

Applies To: Windows SharePoint Services 3.0

Updated: 2007-06-14

Operation name: Adduser

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.