mc admin accesskey list
The mc admin accesskey ls
command lists users, access keys, or temporary security token service keys managed by the AIStor deployment.
You can use mc admin accesskey ls
as an alias to this command.
Syntax
Parameters
ALIAS
Required
The alias
of the AIStor deployment.
USER
Optional
The username of the user(s) to display access keys for. Separate multiple usernames with a space.
--all
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
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
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
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
Optional
List the AIStor 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 AIStor deployment at alias myaistor
and any associated access keys or temporary STS tokens.
mc admin accesskey list myaistor/ --all
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 myaistor
deployment.
mc admin accesskey list myaistor/ --self
List all users created and managed by the deployment
The following command returns a list of all of the users on the deployment at myaistor
.
The list only includes AIStor managed users, not users managed by a third party tool on a protocol like OpenID or Active Directory/LDAP.
mc admin accesskey ls myaistor/ --all --users-only
aistoruser1
and aistoruser2
Return a list of access keys associated with the users The following command returns a list of access keys for two users on the myaistor
deployment.
mc admin accesskey ls myaistor/ aistoruser1 aistoruser2
Behavior
S3 compatibility
The mc commandline tool is built for compatibility with the AWS S3 API and is tested with AIStor and AWS S3 for expected functionality and behavior.
MinIO provides no guarantees for other S3-compatible services, as their S3 API implementation is unknown and therefore unsupported. While mc commands may work as documented, any such usage is at your own risk.