The users commands
The S1 system may be accessed by more than one user. Using S1-CLI client you can list all users, create a new user, edit or delete an existing user.
Create a new user
To create a new user, use the users create
command.
Usage:
users create <name> --password=<password> --role=<prm> --email=<email>
Options
Options and arguments | Description |
---|---|
<name> |
Positional argument, replace <name> with the name of the new user. |
--password=<password> |
Make a password for the new user, <password> with your chosen password. |
--role=<prm> |
Role for the newly created user. Replace <prm> with either Read , ReadWrite , or Admin role. |
--email=<email> |
Specify the email address of the newly created user. Replace <email> with an email address. |
Notice:
- Password must include:
- Both numbers and characters
- At least one upper-case character
- At least 8 characters
- In the login process, the user may be required to insert a login token sent to their email, (see also Two-factor authentication).
Examples
- To create a user
Joe
with permissions to read and write, passwordfree4Ever
, and emailjoe@mct.com
, runusers create Joe --password free4ever --role ReadWrite --email joe@mct.com
- To create a user
Jane
with permissions Admin, passwordhave2Seat
, and emailjane@protonmail.com
, runusers create Jane --password have2seat --role Admin --email jane@protonmail.com
List all users
To list all users, use the users list
command.
Usage:
users list [<name>] [--role=<permissions>]
Options
Options and arguments | Description |
---|---|
<name> |
Positional argument, 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 users
Albert
andJane
, runusers list Albert Jane
Delete a user
To delete a user, log in as 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=<prm>] [--email=<email>]
Options
Options and arguments | Description |
---|---|
<name> |
Positional argument, replace <name> with the name of the user that needs to be edit. |
--password=<password> |
Change the password, replace <password> with your chosen password. |
--role=<prm> |
Edit the role of the user. Replace <prm> with either Read , ReadWrite , or Admin role. |
--email=<email> |
Edit email address. Replace <email> with a new email address. |
Examples
- To edit password of user
Joe
, runusers create Joe --password slave4Life
- To edit the email and role of user
Joe
, runusers create Joe --role Admin --email joe@protonmail.com