Enabling a user account by using XML

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

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

Input for EnableUser

The following input is valid for this request:

Typical response for EnableUser

The response to this procedure does not contain significant data.

Important