AWS Identity and Access Management
CLI Reference (API Version 2010-05-08)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

iam-groupadduser

Description

Adds one or more users to a group.

Syntax

iam-groupadduser -g GROUPNAME [-u USERNAME ...]

Options

Name Description Required

-g GROUPNAME

Name of the group to add the user to.

Type: String

Default: None

Yes

-u USERNAME

Name of the user to add. To add multiple users, you can repeat this option.

Type: String

Default: None

Yes

Output

If the command is successful, the output is empty.

Example

The following example adds the users Jill and Jason to the group called Test.

PROMPT> iam-groupadduser -g Test -u Jill -u Jason