Documentation

Documentation

mc admin policy

Changed in version mc: RELEASE.2023-03-20T17-17-53Z

The following commands are deprecated:

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

attach

Attaches one or more IAM policies to either a user or a group.

create

Creates a new policy on the target MinIO deployment.

detach

Remove one or more IAM policies from a user or group identity.

entities

List the entities associated with a policy, user, or group on a target MinIO deployment.

info

Returns the specified policy in JSON format if it exists on the target MinIO deployment.

ls

Lists all policies on the target MinIO deployment.

rm

Removes an IAM policy from the target MinIO deployment.