Renaming a contact by using XML

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.

Example of a request that calls the RenameContact procedure

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

Input for RenameContact

The following input is valid for this request:

Typical response for RenameContact

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