Share via


Managed Active Directory::MoveObject

The MoveObject method moves an object from one location to another. 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.

Arguments

Input Arguments Required Description

<object>

Yes

The Lightweight Directory Access Protocol (LDAP) path of the object to be moved

<destinationContainer>

Yes

The Lightweight Directory Access Protocol (LDAP) path of the container to move the object to

<preferredDomainController>

No

The domain controller to be used for this request

Remarks

Security

  • Impersonate caller.

Sample Code

Example XML Request

<request> 
  <procedure> 
    <execute namespace="Managed Active Directory" procedure="MoveObject" impersonate="1"> 
      <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>

Applies To

Managed Active Directory Namespace APIManaged Active Directory Namespace API for:

  • Hosted Messaging and Collaboration version 4.5

  • Hosted Messaging and Collaboration version 4.0

  • Hosted Messaging and Collaboration version 3.5

  • Hosted Messaging and Collaboration version 3.0

  • Windows-based Hosting version 4.5

  • Windows-based Hosting version 4.0

  • Windows-based Hosting version 3.5

  • Windows-based Hosting for Applications version 1.0