Remaining item from https://github.com/minio/docs/issues/866: `mc admin user info --JSON` includes the policies the user inherited from their group membership in the `memberOf` property. Staged: http://192.241.195.202:9000/staging/DOCS-866-mc-admin-user-info/linux/html/reference/minio-mc-admin/mc-admin-user-info.html Fixes https://github.com/minio/docs/issues/866 --------- Co-authored-by: Daryl White <53910321+djwfyi@users.noreply.github.com>
3.4 KiB
mc admin user info
minio
Table of Contents
mc admin user info
Syntax
The mc admin user info
command returns detailed information
of a MinIO user <minio-internal-idp>
on the target
MinIO deployment.
To manage external Identity Provider users, see OIDC <mc idp openid>
or
AD/LDAP <mc idp ldap>
.
EXAMPLE
The following command returns details of user myuser
on
the myminio
MinIO deployment:
mc admin user info myminio myuser
SYNTAX
The command has the following syntax:
mc [GLOBALFLAGS] admin user info \
ALIAS \
USERNAME
Parameters
ALIAS
The alias <mc alias>
of a configured MinIO
deployment to retrieve user information from.
USERNAME
The username to retrieve information for.
Global Flags
RELEASE.2023-05-26T23-31-54Z
mc admin user info --JSON
output includes policies
inherited from a user's group memberships in memberOf
.
Examples
View User Details
Use mc admin user info
to view detailed user
information for a user on a MinIO deployment:
mc admin user info ALIAS USERNAME
- Replace
ALIAS <mc admin user info ALIAS>
with thealias <mc alias>
of the MinIO deployment. - Replace
USERNAME <mc admin user info USERNAME>
with the username of the user to display information for.
The output resembles the following:
AccessKey: myuser
Status: enabled
PolicyName: readwrite
MemberOf:
View Policies from Group Membership
Use mc admin user info
with --JSON <mc.--JSON>
to view the policies
inherited from a user's group memberships <minio-groups>
:
mc admin user info ALIAS USERNAME --JSON
- Replace
ALIAS <mc admin user info ALIAS>
with thealias <mc alias>
of the MinIO deployment. - Replace
USERNAME <mc admin user info USERNAME>
with the username of the user to display information for.
The memberOf
property in the output contains a list of
groups the user is a member of, with the policies attached to each
group. The output resembles the following:
{
"status": "success",
"accessKey": "myuser",
"userStatus": "enabled",
"memberOf": [
{
"name": "testingGroup",
"policies": [
"testingGroupPolicy"
]
}
]
}