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.
<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>
The following input is valid for this request:
Use the <group> element to specify the Lightweight Directory Access Protocol (LDAP) path of the group.
<group>LDAP://LDAP path of the group</group>
Use the <newName> element to specify the new name for the group.
<newName>new group name</newName>
By using the <preferredDomainController> element, you can specify the domain controller that you want to use for this request. This information is optional.
<preferredDomainController>your domain controller</preferredDomainController>
<response>
<data>
<path>LDAP://cn=myGroup1NewName,OU=Reseller1,OU=Hosting,DC=contoso,DC=com</path>
</data>
</response>
Important