Moving an object by using XML

Use the MoveObject procedure of the Managed Active Directory namespace to move an organization or another object in Active Directory. Microsoft Provisioning Framework checks the credentials of the person submitting the request to ensure that moves are allowed only within organizations for which the requester has permissions.

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

Example of a request that calls the MoveObject procedure

<request>
  <procedure>
	<execute namespace="Managed Active Directory" procedure="MoveObject">
	<executeData>
		<object>LDAP://CN=myUser1,CN=Users,DC=contoso,DC=com
		</object>
		<destinationContainer>LDAP://OU=Hosting,DC=contoso,DC=com
		</destinationContainer >
		<preferredDomainController>myPrimaryDC.contoso.com
		</preferredDomainController>
	</executeData>
	</execute>
  </procedure>
</request>

Input for MoveObject

The following input is valid for this request:

Typical response for MoveObject

The response to this procedure does not contain significant data.

Important