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.
<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>
The following input is valid for this request:
Use the <object> element to specify the Lightweight Directory Access Protocol (LDAP) path of the object that you want to move.
<object>LDAP://LDAP path of the source object</object>
Use the <destinationContainer> element to specify the Lightweight Directory Access Protocol (LDAP) path of the container where you want to move the object.
<destinationContainer>LDAP:// LDAP path of the destination container</destinationContainer>
By using the <preferredDomainController> element, you can specify the domain controller that you want to use for this request. Using a single preferred domain controller eliminates replication delays that arise between multiple controllers.
<preferredDomainController>your domain controller</preferredDomainController>
The response to this procedure does not contain significant data.
Important