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
Examples
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
--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.