mc admin user disable
The mc admin user disable command disables a MinIO AIStor user on the target MinIO AIStor deployment.
Clients cannot use the user credentials to authenticate to the MinIO AIStor deployment.
Disabling a user does not remove that user from the deployment.
Use mc admin user enable to enable a disabled user on a MinIO AIStor deployment.
To manage external Identity Provider users, see OIDC or AD/LDAP.
Syntax
The following command disables user myuser on the myaistor MinIO AIStor deployment:
mc admin user disable myaistor myuserThe command has the following syntax:
mc [GLOBALFLAGS] admin user disable \
ALIAS \
USERNAME- 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.
Parameters
ALIAS
Required
The alias of the MinIO AIStor deployment with the user to disable.
USERNAME
Required
The username of the user to disable.
Global Flags
This command supports any of the global flags.
Example
Use mc admin user disable to disable a user on a MinIO AIStor deployment:
mc admin user disable ALIAS USERNAME- Replace
ALIASwith the alias of the MinIO AIStor deployment. - Replace
USERNAMEwith the username to disable.
Behavior
S3 compatibility
This command uses a MinIO AIStor administrative API and does not work against other S3-compatible services.