Use the RenameContact procedure of the Managed Active Directory namespace to rename a contact 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="RenameContact">
<executeData>
<contact>LDAP://cn=Jo Brown,OU=Hosting,DC=contoso,DC=com</contact>
<newName>Robert Brown</newName>
</executeData>
<after source="executeData" sourcePath="path"
destination="data" mode="insert" />
</execute>
</procedure>
</request>
The following input is valid for this request:
Use the <contact> element to specify the Lightweight Directory Access Protocol (LDAP) path of contact you want to rename.
<contact>LDAP://LDAP path of the contact</contact>
Use the <name> element to specify the new name of the contact.
<name>My new contact</name>
The following XML response is returned to the requesting user after the successful completion of a request.
<response>
<data>
<path>LDAP://cn=Robert Brown,OU=Hosting,DC=contoso,DC=com</path>
</data>
</response>
Important