HostedActiveDirectory::MakeUserAdmin

The MakeUserAdmin procedure adds or removes a customer user from the Administrators group in the user's organization.

Arguments

Input Arguments Required Description

<path>

Yes

The Lightweight Directory Access Protocol (LDAP) path of user object to modify.

<isAdmin>

Yes

A Boolean value, 1 or 0.

<preferredDomainController>

Yes

The name of the domain controller to use.

Remarks

Procedure Steps

  1. Managed Active Directory:GroupAdd (conditional)

  2. Managed Active Directory:GroupRemove (conditional)

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="MakeUserAdmin"  
                impersonate="1"> 
              <executeData> 
                <path>LDAP://CN=test@Customer1.comOU=Customer1,OU=WH,OU=HOSTING,DC=Fabrikam,DC=COM</path> 
                <isAdmin>1</isAdmin> 
                <preferredDomainController>ad01.fabrikam.com</preferredDomainController> 
              </executeData> 
            </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