1
0
mirror of https://github.com/minio/docs.git synced 2025-09-13 04:26:43 +03:00
Files
docs/source/reference/minio-mc-admin/mc-admin-user-svcacct-info.rst
Daryl White af3d8aba9f Updates for two October 2024 releases (#1353)
Deprecates a no longer used operator environment variable.

Closes #1351

Adds `mc admin accesskey` and subcommands.
Updates `mc admin user svcacct` and subcommands with reference to new
commands.

Closes #1350
2024-10-22 16:32:42 -04:00

4.0 KiB

mc admin user svcacct info

minio

Table of Contents

mc admin user svcacct info

Important

This command has been replaced and will be deprecated in a future MinIO Client release.

As of MinIO Client RELEASE.2024-10-08T09-37-26Z, use the mc admin accesskey info command to display information about access keys for built-in MinIO IDP users.

For access keys for AD/LDAP users, use the mc idp ldap accesskey info command.

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