remove_user_from_group

Use the remove_user_from_group command to remove an Active Directory user from an Active Directory group.

Syntax

remove_user_from_group user group

Options

This command takes no options.

Arguments

This command takes the following arguments:

Argument Type Description

user

string

Required. The user principal name (UPN) of the Active Directory user to remove.

group

string

Required. The UPN of the Active Directory group from which to remove the user.

Return value

This command returns nothing if it runs successfully.

Examples

remove_user_from_group adam.avery@acme.com pubs@acme.com

Related Tcl library commands

The following commands perform actions related to this command:

  • create_aduser creates a new Active Directory user account and sets its password.
  • create_adgroup creates a new Active Directory group account and specifies its scope.
  • create_user creates a new zone user and user profile based on an existing Active Directory user.
  • create_group creates a new zone group and group profile based on an existing Active Directory group.
  • add_user_to_group adds an Active Directory user to an Active Directory group.