mc admin accesskey ls
Syntax
The mc admin accesskey ls command lists users, access keys, or temporary security token service keys managed by the MinIO deployment.
The alias mc admin accesskey list has equivalent functionality to mc admin accesskey ls.
The following command lists all access keys associated to the user with username admin1 on the deployment at alias myminio:
The output resembles the following:
The command has the following syntax:
- Brackets
[]indicate optional parameters. - Parameters sharing a line are mutually dependent.
- Parameters separated using the pipe
|operator are mutually exclusive.
Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.
Parameters
ALIAS
mc-cmd
Required
The alias of the MinIO deployment.
USER
mc-cmd
Optional
The username of the user(s) to display access keys for. Separate multiple usernames with a space.
--all
mc-cmd
Optional
List all users and any access keys or temporary STS keys associated with them. Requires admin privileges for the deployment.
This flag is mutually exclusive with the other flags available for this command.
--svcacc-only
mc-cmd
Optional
List temporary Security Token Service (STS) keys on the deployment.
This flag is mutually exclusive with the other flags available for this command.
--self
mc-cmd
Optional
List access keys and STS keys for the currently authenticated user.
This flag is mutually exclusive with the other flags available for this command.
--temp-only
mc-cmd
Optional
List users with their access keys. This returns only users that have associated access keys.
This flag requires admin privileges for the user running the command.
This flag is mutually exclusive with the other flags available for this command.
--users-only
mc-cmd
Optional
List the MinIO users managed by the deployment. Use in conjunction with the --all flag to list all users on the deployment.
Global Flags
This command supports any of the global flags.
Examples
List all built-in users and associated access keys
The following command lists all users managed by the MinIO deployment at alias myminio and any associated access keys or temporary STS tokens.
Return a list of access keys for the current authenticated user
The following command lists the access keys or temporary STS tokens associated with the currently authenticated user for the myminio deployment.
List all users created and managed by the deployment
The following command returns a list of all of the users on the current deployment. The list only includes MinIO IDP managed users, not users managed by a third party tool on a protocol like OpenID or Active Directory/LDAP.
Return a list of access keys associated with the users miniouser1 and miniouser2
The following command returns a list of access keys for two users on the myminio deployment.
Behavior
S3 Compatibility
SILO is the supported server for PGSTY mcli; compatibility with upstream MinIO and other S3 services is best effort.