add_user_to_group

Use the add_user_to_group command to add an Active Directory user to an Active Directory group.

Syntax

add_user_to_group user group

Options

This command takes no options.

Arguments

This command takes the following arguments:

Argument Type Description

user

string

Required. Specifies the user principal name (UPN) of the Active Directory user to add.

group

string

Required. Specifies the UPN of the Active Directory group to which to add the user.

Return value

This command returns nothing if it runs successfully.

Examples

add_user_to_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 based on an existing Active Directory user, assigns field values to the new user, and saves the new user to Active Directory.
  • create_group creates a new zone group based on an existing Active Directory group, assigns it a UNIX name and group ID, and saves the new group to Active Directory.
  • remove_user_from_group removes an Active Directory user from an Active Directory group.