mc admin user removegroups

Removes IAM groups from IAM users.

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


mc admin user removegroups - remove group of a user

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

  The user whose groups need to be removed.

  List of comma separated groups to be removed from the user.

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


Parameter Description
TARGET The alias of a configured HPE Ezmeral Object Store on which the command removes the groups. This parameter is mandatory.
USERNAME The user name from which the groups must be removed. This parameter is mandatory.
GROUPS The comma separated list of groups to remove. 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


Remove groups firestorm and freezone from a user joe in the northamerica account in the Object Store deployment with alias salesobject.
/opt/mapr/bin/mc admin user removegroups salesobject joe 'firestorm,freezone' account='northamerica'