mc admin policy
Changed in version mc: RELEASE.2023-03-20T17-17-53Z
The following commands are deprecated:
mc admin policy add
usemc admin policy create
insteadmc admin policy set
usemc admin policy attach
insteadmc admin policy unset
usemc admin policy detach
instead
The following command is added:
Description
The mc admin policy
commands manage policies for use with MinIO Policy-Based Access Control (PBAC).
MinIO PBAC uses IAM-compatible policy JSON documents to define rules for accessing resources on a MinIO server.
For complete documentation on MinIO PBAC, including policy document JSON structure and syntax, see Access Management.
Subcommands
mc admin policy
includes the following subcommands:
Subcommand |
Description |
---|---|
Attaches one or more IAM policies to either a user or a group. |
|
Creates a new policy on the target MinIO deployment. |
|
Remove one or more IAM policies from a user or group identity. |
|
List the entities associated with a policy, user, or group on a target MinIO deployment. |
|
Returns the specified policy in JSON format if it exists on the target MinIO deployment. |
|
Lists all policies on the target MinIO deployment. |
|
Removes an IAM policy from the target MinIO deployment. |