Share via


Managed Active Directory::RenameContact

The RenameContact method renames a contact.

Arguments

Input Arguments Required Description

<contact>

Yes

The Lightweight Directory Access Protocol (LDAP) path of the contact to be renamed

<name>

Yes

The new name of the contact

Remarks

Security

  • Impersonate caller.

Sample Code

Example XML Request

<request> 
  <procedure> 
    <execute namespace="Managed Active Directory" procedure="RenameContact" impersonate="1"> 
      <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>

Example XML Response

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

Applies To

Managed Active Directory Namespace APIManaged Active Directory Namespace API for:

  • Hosted Messaging and Collaboration version 4.5

  • Hosted Messaging and Collaboration version 4.0

  • Hosted Messaging and Collaboration version 3.5

  • Hosted Messaging and Collaboration version 3.0

  • Windows-based Hosting version 4.5

  • Windows-based Hosting version 4.0

  • Windows-based Hosting version 3.5

  • Windows-based Hosting for Applications version 1.0

See also

Tasks

Managed Active Directory::CreateContact
Managed Active Directory::DeleteContact
Managed Active Directory::ModifyContact