Users
The StorONE (S1) system may be accessed by multiple users. Using the S1 CLI client, you can list, create, edit, and delete users.
Create a new user
To create a new user, use the users create command.
Usage:
users create <name> --password=<password> --role=<permissions> --email=<email>
Options
| Options and arguments | Description |
|---|---|
<name> |
The name of the new user. |
--password=<password> |
The user password. Replace <password> with your chosen password. |
--role=<permissions> |
The user role. Replace <permissions> with either Read, ReadWrite, or Admin. |
--email=<email> |
The user email address. Replace <email> with an email address. |
Passwords must include:
-
Both numbersNumbers and characters- At least one upper-case character
- At least 8 characters
-
-
When
In the login process,in, the user may be required to provide a login token sent to their email. For more information, see Two-factor authentication).
Examples
-
To create a user
Joewith permissions to read and write, passwordfree4Ever, and emailjoe@example.com, run:users create Joe --passwordfree4everfree4Ever --role ReadWrite --email joe@example.com -
To create a user
Janewith permissions Admin, passwordhave2Seat, and emailjane@example.com, run:users create Jane --passwordhave2seathave2Seat --role Admin --email jane@example.com
List all users
To list all users, run the users list command.
Usage:
users list [<name>] [--role=<permissions>]
Options
| Options and arguments | Description |
|---|---|
<name> |
Display only information about the specified user name. |
--role=<permissions> |
List only users with specified role. |
Examples
- To list all users, run the command
users list. - To display user information for user
Albert, runusers list Albert.
Delete a user
To delete a user, log in as an Admin user and use the users delete command.
Usage:
users delete <name>
Options
| Options and arguments | Description |
|---|---|
<name> |
Positional argument, replace <name> with the name of the new user that you want to delete. |
Examples
- To delete user
Joe, runusers delete Joe
Edit an existing user
To Edit an existing user, use the user edit command.
Usage:
users edit <name> [--password=<password>] [--role=<permissions>] [--email=<email>]
Options
| Options and arguments | Description |
|---|---|
<name> |
The name of the user to edit. |
--password=<password> |
Set a new password. Replace <password> with your chosen password. |
--role=<permissions> |
Set the role of the user. Replace <permissions> with either Read, ReadWrite, or Admin. |
--email=<email> |
Set the user email address. Replace <email> with the desired email address. |
Examples
- To change the password for user
Joetojoey4Life, run:users edit Joe --password joey4Life - To change the email and role of user
Joe, run:users edit Joe --role Admin --email joe@example.com