Managed CDI::EnableUser

The EnableUser procedure enables a customer user for the CDI Service.

Arguments

Input argument Required Description

<path>

Yes

The Lightweight Directory Access Protocol (LDAP) path of the user in the Service Provider domain.

<preferredDomainController>

Yes

The name of the preferred domain controller in the Service Provider domain.

<remoteSamAccountName>

Yes

The user's remote sAMAccountName.

Dd229931.note(en-us,TechNet.10).gifNote
sAMAccountName cannot be longer than 20 characters. See SAM-Account-Name Attribute for more information.

<remoteUserPrincipalName>

No

The user principal name (UPN) of the remote user.

Remarks

Security

The EnableUser procedure has the following security requirements:

  • The caller is impersonated.

  • Minimum security role is UserCreators.

Sample Code

Example XML Request

The following is an example of an XML request for the EnableUser procedure of the Managed CDI Namespace:

<?xml version="1.0" encoding="iso-8859-1" ?> 
<request> 
 
  <procedure> 
 
    <execute namespace="Managed CDI" procedure="EnableUser" impersonate="1"> 
 
      <executeData> 
 
        <path>LDAP://CN=jimc@alpineSkiHouse.com,OU=AlpineSkiHouse,OU=ConsolidatedMessenger,OU=Hosting,DC=Fabrikam,DC=Com</path> 
 
        <remoteSamAccountName>jimc</remoteSamAccountName> 
 
        <remoteUserPrincipalName>jimc@alpine.com</remoteUserPrincipalName> 
 
        <preferredDomainController>ad0l.fabrikam.com</preferredDomainController> 
 
      </executeData> 
 
    </execute> 
 
  </procedure> 
 
</request> 

Example XML Response

No example XML response.

Applies To

Managed Customer Directory Integration Namespace API for:

  • Hosted Messaging and Collaboration version 4.0

  • Hosted Messaging and Collaboration version 3.5

  • Windows-based Hosting version 4.5

  • Windows-based Hosting version 4.0

  • Windows-based Hosting for Applications version 1.0

See also

Tasks

Managed CDI::DisableUser