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}

The security identifier (SID) of a user.

Accept: application/xml  
Cookie: ASP.NET_SessionId=********************  
Canary: *********************  
Host: domainname  
Content-Type: application/xml  
Content-Length: 88  

<string xmlns="">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