mc admin account modify

Modifies an account for a domain.

The Object Store administrator runs this command to modify accounts.
NOTE You cannot modify storage class options with this command. Use the mc admin account modify-storageclass command to modify the storage class options.

After you modify the default bucket policy for the account, then all the new buckets that get created from that moment will inherit the modified policy. Existing buckets will continue to use the old bucket policy.

Syntax

CLI
mc admin account modify TARGET account_name [ domain=<domain_name> ] [ admin=<user_name> ] \
    [ default_bucket_policy=<json_file> ] [ access_controls=<json_file> ]

account_name:
  The account whose meta data needs to be modified

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 deployment on which the command modifies an account. This parameter is mandatory.
account_name The name of the account to modify. This parameter is mandatory.
domain The name of the domain under which the account must be modified.
admin The name of the LDAP user to designate as the new account administrator. By default, the mapr user is the cluster administrator and the administrator of all accounts.
default_bucket_policy The bucket policy to set as default for all buckets in the account.
access_control The access control list to set for all resources in the account.
json Enables JSON formatted output
debug Enables output for debugging
insecure Disables SSL verification
help Shows this help

Example

Set the root/admin of the account sales in the Object Store deployment with alias salesobject to LDAP user joe:
CLI
mc admin account modify salesobject sales admin=joe