Disabling a user account by using XML

Use the DisableUser procedure of the Managed Active Directory namespace to disable a user's account.

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

Example of a request that calls the DisableUser procedure

<request>
  <procedure>
	<execute namespace="Managed Active Directory" procedure="DisableUser">
	<executeData>
		<user>LDAP://CN=myUser1,CN=Users,DC=contoso,DC=com</user>
		<preferredDomainController>myPrimaryDC.contoso.com
		</preferredDomainController>
	</executeData>
	</execute>
  </procedure>
</request>

Input for DisableUser

The following input is valid for this request:

Typical response for DisableUser

The response to this procedure does not contain significant data.

Important