mc admin creds list-access-key

Lists the access keys belonging to a specified user.

Users can run this command to list their access keys.

Syntax

CLI
mc admin creds list-access-key - list the access keys of a user

USAGE:
  mc admin creds list-access-key TARGET user [ account=<account_name> ] [ domain=<domain_name> ]

user:
  User whose access key needs to be listed

account:
  The account to which the user belongs.

FLAGS:
  --config-dir value, -C value  path to configuration folder (default: "/root/.mc")
  --quiet, -q                   disable progress bar display
  --no-color                    disable color theme
  --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 from which the command lists the access key. This parameter is mandatory.
user The user name for which the access key needs to be listed. This parameter is mandatory.
account The name of the account to which the user belongs. The account is assumed to be the default account, if you do not specify this parameter.
domain The name of the domain under which the account exists.
config-dir Path to the configuration directory (/root/.mc by default).
quiet Disables progress bar display.
no-color Disables color in the output.
json Enables JSON formatted output.
debug Enables output for debugging.
insecure Disables SSL verification.
help Shows this help.

Examples

  1. List the access key for user joe from the default account in the Object Store deployment with alias salesobject.
    CLI
    /opt/mapr/bin/mc admin creds list-access-key salesobject joe -json
  2. List the access key for user joe from the northamerica account in the Object Store deployment with alias salesobject.
    CLI
    /opt/mapr/bin/mc admin creds list-access-key salesobject joe account='northamerica' -json