Workspace Settings
-
Get users of the workspace
Use command :
initz get user --scope=<workspace/org>
Flags
--scope
- Defines the scope from where you want to remove the user, In this case, the scope argument value should be "workspace".
- required
-
Add user to the Workspace
In order to add a user to a particular workspace, Use command :
- Using Argument
- Using File
initz add user --role=<role> --userid=<userid>
Flags
--role
- Role for which you want to add the user.
- Available roles : workspace-admin,developer
- required
--userid
- ID of the user.
- required
- (How to get userid)
- Instruction : Write the user ID within double quotes.
initz add user -f <user.json/user.yaml>
Example template :
- JSON
- YAML
user.json{
"role":"developer",
"user_id":"auth0|66cd998c7757bc757b41c49a",
"workspace_id":"6694abc5ba97a06326052941"
}user.yamlrole : workspace-admin
user_id : auth0|66cd998c7757bc757b41c49a
workspace_id : 6694abc5ba97a06326052941importantYou can only add a user to the workspace if the user exists in the organization.
-
Remove user from the workspace
In order to remove a user from a particular workspace, Use command :
initz remove user --scope=<workspace/org> --userid=<userid>
Flags
--scope
- Defines the scope from where you want to remove the user, In this case, the scope argument value should be "workspace".
- required
--userid
- ID of the user.
- required
-
Remove workspace from the organization
To remove the workspace from the organization, Use command :
initz delete workspace --workspaceid=<workspaceid>
Flags
--workspaceid
- ID of the workspace which you want to remove.
- required
- (How to get workspace ID)
tip
In case you face any issue :
- Check your current workspace.
- If you are in the target workspace, you can use the command to add the user directly. Otherwise, you need to set the workspace first (How to set workspace).
note
- Only admins and workspace-admins will have the ability to delete the workspace..