Update a User
Applies To: Windows Server 2012 Essentials
Updates user information and permissions.
URI Template
POST services/builtin/UserManagement.svc/user/{userSID}/update?firstname={firstName}&lastname={lastName}&remotewebaccess={remoteWebAccess}&vpnaccess={vpnAccess}
{userSID}
The security identifier (SID) of a user.
{firstName}
The first name of the user.
{lastName}
The last name of the user.
{remoteWebAccess}
true
to allow the user to have remote web access; otherwise, false
.
{vpnAccess}
true
to allow the user to have access to virtual private networks (VPNs); otherwise, false
.
Sample Request
POST https://www.contoso.com/services/builtin/UserManagement.svc/user/S-1-5-21-2262141087-2005479377-3694225243-1117/update?firstname=Aurora3&lastname=User3&remotewebaccess=True&vpnaccess=False HTTP/1.1
Accept: application/xml
Cookie: ASP.NET_SessionId=********************
Canary: *********************
Host: domainname
Content-Length: 0
Sample Response
HTTP/1.1 200 OK
Error Codes
Error Code | Error Message |
---|---|
400 | One or more parameters are not valid. |
401 | Access is denied to the requested resource. |
404 | The path does not exist. |