mc admin user policy command to handle users with multiple attached policies. With this update, the command can now handle multiple policies, displaying each policy's details sequentially.
Motivation and Context
The command would fail with an error when a user had more than one policy attached, as it expected a single policy name
Description
mc admin user policy
command to handle users with multiple attached policies. With this update, the command can now handle multiple policies, displaying each policy's details sequentially.Motivation and Context
The command would fail with an error when a user had more than one policy attached, as it expected a single policy name
How to test this PR?
~/mc admin user add myminio minio1 minio123
~/mc admin policy attach myminio consoleAdmin --user minio1
~/mc admin user info myminio minio1
~/mc admin user policy myminio minio1
~/mc admin policy attach myminio diagnostics --user minio1
~/mc admin user info myminio minio1
~/mc admin user policy myminio minio1
Types of changes