mc idp ldap policy detach


The mc idp ldap policy detach command detaches one or more polices from an entity.

The following example detaches the policy userpolicy from the user bobfisher on the myminio deployment.

mc idp ldap policy detach myminio                                                  \
                          userpolicy                                               \

The command has the following syntax:

mc [GLOBALFLAGS] idp ldap policy detach             \
                                 POLICYNAME         \
                                 [POLICY2] ...      \
                                 ALIAS              \
                                 [--user=`USER`]    \
  • Replace ALIAS with the alias of a MinIO deployment to configure for AD/LDAP integration.

  • Replace POLICYNAME with the policy to detach from the entity. You may list multiple policies to detach from the entity.

  • Use must use one of either the --user or --group flag. You may only use the flag once in the command. You cannot use both flags in the same command.

  • Brackets [] indicate optional parameters.

  • Parameters sharing a line are mutually dependent.

  • Parameters separated using the pipe | operator are mutually exclusive.

Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.



The alias of the MinIO deployment with the entity from which to detach a policy.

For example:

mc idp ldap policy detach myminio                                                  \
                          userpolicy                                               \


The following example detaches two policies, policy1 and policy2, from the projectb group on the myminio deployment:

mc idp ldap policy detach myminio                                                 \
                          policy1                                                 \
                          policy2                                                 \

Global Flags

This command supports any of the global flags.


S3 Compatibility

The mc commandline tool is built for compatibility with the AWS S3 API and is tested with MinIO and AWS S3 for expected functionality and behavior.

MinIO provides no guarantees for other S3-compatible services, as their S3 API implementation is unknown and therefore unsupported. While mc commands may work as documented, any such usage is at your own risk.