mc admin user add

The mc admin user add command adds a new MinIO AIStor user to the target MinIO AIStor deployment.

To manage external Identity Provider users, see OIDC or AD/LDAP.

Syntax

The following command creates a new user newuser on the myaistor MinIO AIStor deployment:

mc admin user add myaistor newuser newusersecret

The command has the following syntax:

mc [GLOBALFLAGS] admin user add        \
                            ALIAS      \
                            ACCESSKEY  \
                            SECRETKEY
  • 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

ACCESSKEY

Required

The access key that uniquely identifies the new user, similar to a username.

ALIAS

Required

The alias of a configured MinIO AIStor deployment on which to create the new user.

SECRETKEY

Required

The secret key for the new user. The secret key must be at least 8 characters long. Consider the following guidance when creating a secret key:

  • The key should be unique
  • The key should be long (Greater than 12 characters)
  • The key should be complex (A mixture of characters, numerals, and symbols)

Global Flags

This command supports any of the global flags.

Example

Create a new user

Use mc admin user add to create a user on a MinIO AIStor deployment:

   mc admin user add ALIAS ACCESSKEY SECRETKEY
  • Replace ALIAS with the alias of the MinIO AIStor deployment.
  • Replace ACCESSKEY with the access key for the user.
  • Replace SECRETKEY with the secret key for the user. MinIO AIStor does not provide any method for retrieving the secret key once set.

Specify a unique, random, and long string for both the ACCESSKEY and SECRETKEY. Your organization may have specific internal or regulatory requirements around generating values for use with access or secret keys.

Behavior

New users have no default policies

Newly created users have no policies by default and therefore cannot perform any operations on the MinIO AIStor deployment. To configure a user’s assigned policies, you can do either or both of the following:

For more information on MinIO AIStor users and groups, see User Management and Group Management. For more information on MinIO AIStor policies, see MinIO Policy Based Access Control.

S3 compatibility

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

On this page