CmdID

CmdID / aws / aws iam

aws iam tag-user

Adds one or more tags to an IAM user. AWS CLI reference

1 example 2 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To add a tag to a user

The following tag-user example adds a tag with the associated Department to the specified user.

aws iam tag-user --user-name alice --tags '{"Key": "Department", "Value": "Accounting"}'Identify
--user-nameThe name of the IAM user to which you want to add tags.
--tagsThe list of tags that you want to attach to the IAM user.

This command produces no output.

For more information, see Tagging IAM resources in the AWS IAM User Guide.

Options

2 in the AWS CLI reference
--tagsThe list of tags that you want to attach to the IAM user.
--user-nameThe name of the IAM user to which you want to add tags.