Renaming an organization by using XML

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.

Example of a request that calls the RenameOrganization procedure

<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>

Input for RenameOrganization

The following input is valid for this request:

Typical response for RenameOrganization

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