Renaming a group by using XML

Use the RenameGroup procedure of the Managed Active Directory namespace to rename a group in Active Directory.

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

Example of a request that calls the RenameGroup procedure

<request>
  <procedure>
	<execute namespace="Managed Active Directory" procedure="RenameGroup">
	<executeData>
		<group>LDAP:// CN=myGroup1,DC=contoso,DC=com</group>
		<newName>myGroup1NewName</newName>
		<preferredDomainController>myPrimaryDC.contoso.com</preferredDomainController>
	</executeData>
	<after source="executeData" sourcePath="path" 
		destination="data" mode="insert" /> </execute>
	</execute>
  </procedure>
</request>

Input for RenameGroup

The following input is valid for this request:

Typical response for RenameGroup

<response>
  <data>
	<path>LDAP://cn=myGroup1NewName,OU=Reseller1,OU=Hosting,DC=contoso,DC=com</path>
  </data>
</response>

Important