Change the Password of a User
Applies To: Windows Server 2012 Essentials
Changes the password of a domain user.
URI Template
POST services/builtin/UserManagement.svc/user/setpassword/{userSID}
{userSID}
The security identifier (SID) of a user.
Sample Request
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="https://schemas.microsoft.com/2003/10/Serialization/">NewPassword</string>
Sample Response
HTTP/1.1 200 OK
Error Codes
Error Code | Error Message |
---|---|
400 | The password is missing or does not meet complexity requirements. |
401 | Access is denied to the requested resource. |
404 | The path does not exist. |
Remarks
The new password is specified in the body of the request, in the text of the string
element.