Share via


Managed Active Directory::GroupRemove

The GroupRemove procedure removes a member from a group in Active Directory.

Arguments

Input Arguments Required Description

<group>

Yes

The Lightweight Directory Access Protocol (LDAP) path of the group from which you want to remove a member.

<member>

Yes

The LDAP path of the object (for example, a user or another group) you want to remove from the group.

<preferredDomainController>

No

The domain controller to use for this request. Using a single preferred domain controller eliminates replication delays that can arise between multiple controllers.

Remarks

Security

  • Impersonate Caller.

Sample Code

Example XML Request

<request> 
  <procedure> 
    <execute namespace="Managed Active Directory" procedure="GroupRemove" impersonate="1"> 
      <executeData> 
        <group>LDAP://CN=Administrators,CN=Users,DC=contoso,DC=com</group> 
        <member>LDAP://CN=myUser1,CN=Users,DC=contoso,DC=com</member> 
        <preferredDomainController>myPrimaryDC.contoso.com</preferredDomainController> 
      </executeData> 
    </execute> 
  </procedure> 
</request> 
 

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