Use the RenameOrganization procedure of the Managed Active Directory namespace to rename an organization.
This procedure expects to be called with impersonate="1". The procedure impersonates the caller.
<request>
<procedure>
<execute namespace="Managed Active Directory" procedure="RenameOrganization">
<executeData>
<org>LDAP://OU=Reseller1,OU=Hosting,DC=contoso,DC=com</org>
<newName>Reseller1NewName</newName>
<preferredDomainController>myPrimaryDC.contoso.com
</preferredDomainController>
</executeData>
<after source="executeData" sourcePath="path"
destination="data" mode="insert" />
</execute>
</procedure>
</request>
The following input is valid for this request:
Use the <org> element to specify the Lightweight Directory Access Protocol (LDAP) path of the organizational unit that you want to rename.
<org>LDAP://LDAP path of the organization</org>
Use the <newName> element to specify the new name for the organization you want to rename.
<newName>organization name for reseller or customer</newName>
By using the <preferredDomainController> element, you can specify the domain controller you want to use for this request.
This information is optional.
<preferredDomainController>your domain controller</preferredDomainController>
This procedure returns the new LDAP path of organization in <path>
<response>
<data>
<path>LDAP://ou=Reseller1NewName,OU=Hosting,DC=contoso,DC=com</path>
</data>
</response>
Important