Setting a user account password by using XML

Use the SetUserPassword procedure of the Managed Active Directory namespace to set 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 SetUserPassword procedure

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

Input for SetUserPassword

The following input is valid for this request:

Typical response for SetUserPassword

The response to this procedure does not contain significant data.

Important