Changing a user account password by using XML

Use the ChangeUserPassword procedure of the Managed Active Directory namespace to change a user's password.

This procedure expects to be called with impersonate="1". The procedure impersonates the caller.

Example of a request that calls the ChangeUserPassword procedure

<request>
  <procedure>
	<execute namespace="Managed Active Directory" procedure="ChangeUserPassword">
	<executeData>
		<user>LDAP://CN=myUser1,CN=Users,DC=contoso,DC=com</user>
		<oldPassword do-not-log="1">myOldPassword</oldPassword>
		<newPassword do-not-log="1">myNewPassword</newPassword>
		<preferredDomainController>myPrimaryDC.contoso.com
		</preferredDomainController>
	</executeData>
	</execute>
  </procedure>
</request>

Input for ChangeUserPassword

The following input is valid for this request:

Typical response for ChangeUserPassword

The response to this procedure does not contain significant data.

Important