User and Workspace management commands
Last updated
Last updated
This page describes all commands that allow users and workspaces to be managed with their options (see also common options available for all commands).
Command | Description |
---|---|
Notice: an Akamas workspace (user) is an Akamas resource (see list of Akamas resources) so you can also refer to resource management commands.
The create workspace
command allows defining a new workspace:
The following snippet shows an example:
After the workspace has been created you can add users to the workspace with the following command:
See Update user section for further details
The update workspace
command allows updating the workspace name:
with the following options:
The following snippet shows an example:
The delete workspace
command allows deleting a workspace:
with the following options:
The following snippet shows an example:
The list users
command returns the list of the available users.
The following snippet shows an example:
The create user
command allows defining a new user and assigning it to one or more workspaces.
with the following options
The default policy requires the password to satisfy the following rules:
Include one or more uppercase characters (A-Z)
Include one or more special characters (~!@#$%^&*_-+=`|\(){}[]:;"'<>,.?/)
The username and password can be either provided interactively or as command arguments.
The following snippet shows the process of creating a new user interactively:
The same action can be performed using the command options:
The describe user
command returns the details of a valid user matching the provided username or ID:
Notice: users without administrative privileges can only describe their profiles, while administrators can inspect any profile.
The following snippet shows an example:
The update user
command allows updating the user profile attributes for the user matching the username or ID:
with the following options:
For single sign-on users is possible to update only the workspaces and the administration privilege. It is not possible to modify the profile info.
The following snippet shows an example of updating the email of a user:
This command is also used to grant or revoke access to workspaces and administrative privileges to users.
The following snippet shows an example of updating the user’s workspace access privileges, adding write privileges on Workspace 1, and revoking access on Default:
The update password
command updates the password for the user matching the username or ID:
with the following options:
Users without administrative privileges can update only their own passwords, while administrators can perform this action on any profile.
Single sign-on users can't change their password using the Akamas CLI. They must manage their passwords through the configured external identity provider.
The default policy requires the password to satisfy the following rules:
Include one or more uppercase characters (A-Z)
Include one or more special characters (~!@#$%^&*_-+=`|\(){}[]:;"'<>,.?/)
The password can be either provided interactively or as command arguments.
The following snippet shows the prompts to update the user password:
The same action can be performed using the command options:
The delete user
command removes the user with the provided username or id:
with the following options:
The following snippet shows an example of deleting interactively a user:
Option | Required | Description |
---|---|---|
Option | Required | Description |
---|---|---|
Option | Required | Description |
---|---|---|
Option | Required | Description |
---|---|---|
Option | Required | Description |
---|---|---|
Option | Required | Description |
---|---|---|
create a workspace
update a workspace
delete a workspace
list users
create a user
describe a user
update user profile
update user password
delete a user
--name
TEXT
yes
New workspace name
-y
no
Show this message and exit
-u
, --username
TEXT
yes
Username
-p
, --password
TEXT
yes
Password
--first-name
TEXT
no
User first name
--last-name
TEXT
no
User last name
--email
TEXT
no
Valid email
-w
, --add-to-workspace
TEXT
no
Add the user to the specified workspace with the specified role (R|W) (e.g., --add-to-workspace WORKSPACE_A R). The option can be specified multiple times to add more workspaces.
--admin
no
Specify if you want to give Administration privileges to the user
--first-name
TEXT
no
User first name
--last-name
TEXT
no
User last name
--email
TEXT
no
Valid email
-w
, --add-to-workspace
TEXT
no
Add the user to the specified workspace with the specified role (R|W) (e.g., --add-to-workspace WORKSPACE_A R). The option can be specified multiple times to add more workspaces.
-r
, --remove-from-workspace
TEXT
no
Remove the user from the specified workspace
--admin
no
Specify if you want to give Administration privileges to the user
--no-admin
no
Specify if you want to remove Administration privileges to the user
-p
, --password
TEXT
yes
New password
-y
no
Automatic yes to prompts