mc admin user policy

The mc admin user policy command exports the policies attached to a user, in JSON format.

Syntax

The command has the following syntax:

mc admin user policy TARGET USERNAME

Global flags

This command supports any of the global flags.

Examples

Display the policy document of a user “foobar” in JSON format.

mc admin user policy myminio foobar

Behavior

S3 compatibility

This command uses a MinIO AIStor administrative API and does not work against other S3-compatible services.