1
0
mirror of https://github.com/minio/docs.git synced 2025-07-30 07:03:26 +03:00
Files
docs/source/reference/minio-mc-admin/mc-admin-user-svcacct-info.rst
Ravind Kumar 3f6b8ea57d DOCS-780: Bug Stomping (#844)
A few big things here:

- Updated to Sphinx 6.2.1 successfully. I'm using Python 3.10.10
- Upgraded to docutils 0.19, which is latest
- Upgrade myst-parser and sphinx-design to latest stable
- Fixed a bunch of warning outputs
2023-05-11 16:57:03 -04:00

3.6 KiB

mc admin user svcacct info

minio

Table of Contents

mc admin user svcacct info

Syntax

The mc admin user svcacct info command returns a description of the specified access key <minio-id-access-keys>.

"Access Keys" have equivalent functionality to and replace the concept of "Service Accounts" in MinIO.

The description output includes the following details, as available:

  • Access Key
  • Parent user of the specified access key
  • Access key status (on or off)
  • Policy or policies
  • Comment
  • Expiration

Use ~mc admin user svcacct info --policy to view the attached policies.

EXAMPLE

The following command returns information on the specified access key:

mc admin user svcacct info myminio myuseraccesskey 

SYNTAX

The command has the following syntax:

mc [GLOBALFLAGS] admin user svcacct info           \  
                                    [--policy]     \  
                                    ALIAS          \  
                                    ACCESSKEY

Parameters

ALIAS

The alias <mc alias> of the MinIO deployment.

ACCESSKEY

The service account access key to display.

--policy

Displays policies attached to the specified service account.

Global Flags

Examples

Display Service Account Details

Use mc admin user svcacct info to display details of a service account on a MinIO deployment:

mc admin user svcacct info ALIAS ACCESSKEY
  • Replace ALIAS <mc admin user add ALIAS> with the alias <mc alias> of the MinIO deployment.
  • Replace ACCESSKEY <mc admin user svcacct info ACCESSKEY> with the service account access key.

The output resembles the following:

AccessKey: myuserserviceaccount
ParentUser: myuser
Status: on
Comment: 
Policy: implied
Expiration: no-expiry

Display Service Account Policy Details

Use mc admin user svcacct info to display the policies attached to service account:

mc admin user svcacct info --policy ALIAS ACCESSKEY
  • Replace ALIAS <mc admin user add ALIAS> with the alias <mc alias> of the MinIO deployment.
  • Replace ACCESSKEY <mc admin user svcacct info ACCESSKEY> with the service account access key.

The output resembles the following:

{
 "Version": "2012-10-17",
 "Statement": [
  {
   "Effect": "Allow",
   "Action": [
    "s3:*"
   ],
   "Resource": [
    "arn:aws:s3:::*"
   ]
  }
 ]
}

Behavior

S3 Compatibility