add-user-to-group¶
Adds the specified user to the specified group.
Refer to AWS API Documentation.
Refer to AWS help for descriptions of global parameters.
Synopsis¶
add-user-to-group
--group-name <value>
--user-name <value>
Options¶
--group-name (string)
The name of the group to update.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters:
_,+,=,,,.,@, and-.
--user-name (string)
The name of the user to add.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters:
_,+,=,,,.,@, and-.
Examples¶
To add a user to an IAM group
The following add-user-to-group command adds an IAM user named Bob to
the IAM group named Admins
aws iam add-user-to-group --user-name Bob --group-name Admins
For more information, refer to Adding and Removing Users in an IAM Group in the Using IAM guide.
Output¶
None

