Change the Password of a User

 

Updated: October 9, 2012

Applies To: Windows Server 2012 Essentials

Changes the password of a domain user.

POST services/builtin/UserManagement.svc/user/setpassword/{userSID}

{userSID}
The security identifier (SID) of a user.

POST https://www.contoso.com/services/builtin/UserManagement.svc/User/SetPassword/S-1-5-21-4054238435-649431279-2388979580-1116 HTTP/1.1  
Accept: application/xml  
Cookie: ASP.NET_SessionId=********************  
Canary: *********************  
Host: domainname  
Content-Type: application/xml  
Content-Length: 88  
  

<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">NewPassword</string>  

HTTP/1.1 200 OK  

Error CodeError Message
400The password is missing or does not meet complexity requirements.
401Access is denied to the requested resource.
404The path does not exist.

The new password is specified in the body of the request, in the text of the string element.

Web Service Methods

Show: