Hosted Active Directory::CreateContact

The CreateContact method creates an Active Directory Contact object.

Arguments

Input Arguments Required Description

<container>

Yes

The Lightweight Directory Access Protocol (LDAP) of the container in which the new Contact is to be created.

<name>

Yes

Contact name.

<preferredDomainController>

Yes

The name of the preferred domain controller.

<propertiesXmlString>

No

Valid Active Directory attributes for an object. This property is passed in as an XML fragment string in the following format:

<properties> 
<property name="l">Some City</property> 
<property name="st">Washington</property> 
</properties> 
Output Arguments Description

<path>

New Contact LDAP path.

Remarks

Procedures Steps

  1. Managed Active Directory::CreateContact

  2. Managed Plans::CreateCustomer

Sample Code

Example XML Request

<request xmlns:xsl="https://www.w3.org/1999/XSL/Transform"> 
          <procedure xmlns:xsl='https://www.w3.org/1999/XSL/Transform'> 
            <execute namespace="Hosted Active Directory" procedure="CreateContact" impersonate="1"> 
              <executeData> 
                 <container>LDAP://OU=AlpineSkiHouse,OU=WH,OU=Hosting,DC=Fabrikam,DC=Com</container> 
                 <name>contact</name> 
                 <preferredDomainController>ad01.fabrikam.com</preferredDomainController> 
                  <properties> 
                  <property name="displayName">John Doe</property> 
                  <property name="street">1703 NE 91st</property> 
                </properties> 
              </executeData> 
              <after source="executeData" destination="data" mode="merge"/> 
            </execute> 
          </procedure> 
        </request> 

Applies To

Hosted Active Directory Namespace API for

  • Hosted Messaging and Collaboration version 4.5

  • Hosted Messaging and Collaboration version 4.0

See also

Tasks

Hosted Active Directory::DeleteContact
HostedActiveDirectory::ModifyContact