Add a Standard User


Updated: October 9, 2012

Applies To: Windows Server 2012 Essentials

Creates a new standard user on the domain.

POST services/builtin/UserManagement.svc/user/add?username={username}&firstname={firstName}&lastname={lastName}&remotewebaccess={remoteWebAccess}&vpnaccess={vpnAccess}

The name to use for a user.

The first name of the user.

The last name of the user.

true to allow the user to have remote web access; otherwise, false.

true to allow the user to have access to virtual private networks (VPNs); otherwise, false.

Accept: application/xml  
Cookie: ASP.NET_SessionId=********************  
Canary: *********************  
Host: domainname  
Content-Length: 85  
Expect: 100-continue  

<string xmlns="">User@123</string>  

HTTP/1.1 200 OK  

Error CodeError Message
400One or more parameters are not valid.
401Access is denied to the requested resource.
403A user with the requested name already exists.
404The path does not exist.

A user with domain administrator permission cannot be created with this method.

Web Service Methods

Community Additions