mc admin user addgroups

Adds IAM groups to a IAM user.

The Object Store administrator runs this command to add IAM groups to IAM users.

Syntax

CLI
mc admin user addgroups TARGET USERNAME GROUPS [ account=<account_name> ] [ domain=<domain_name> ]

USERNAME:
  The user to whom new groups need to be added.

GROUPS:
  List of comma separated groups to be added to the user.

FLAGS:
  --json                        enable JSON lines formatted output
  --debug                       enable debug output
  --insecure                    disable SSL certificate verification
  --help, -h                    show help

Parameters

Parameter Description
TARGET The alias of a configured HPE Ezmeral Object Store on which the command adds the groups. This parameter is mandatory.
USERNAME The user name to which the groups must be added. This parameter is mandatory.
GROUPS The comma separated list of groups to add. This parameter is mandatory.
account The name of the account to which to the user belongs.
domain The name of the domain under which the account exists.
json Enables JSON formatted output.
debug Enables output for debugging.
insecure Disables SSL verification.
help Shows this help.

Example

Add groups firestorm and freezone to a user joe in the northamerica account in the Object Store deployment with alias salesobject.

CLI
/opt/mapr/bin/mc admin user addgroups salesobject joe 'firestorm,freezone' account='northamerica'