cloud users permissions edit
Overview
Adds or edits the value of a single permission of a user in the organisation. Available roles: [Admin, Manager, Editor, Viewer, None]
Aliases: edit
Usage:
Arguments:
<user-id>
: id of the user
Options:
-p, --permission-assignments <permission-assignments>
: Array of permission assignments in the format "[{Scope, Role}, {Scope, Role}, ...]"
How It Works
The quix cloud user permissions edit
command is used to add or edit the value of a single permission of a user in the organization. This command allows specifying the scope and role for the permission, effectively updating the user's permissions.
Note
If you want to assign multiple permissions at once, refer to this command.
Example Usage
Interactive Mode
When you run the command without specifying the user ID or permission assignments, it will guide you through selecting a user and editing permissions interactively.
$ quix cloud user permissions edit
? Select user:
> [email protected] John Doe
[email protected] Jane Doe
[email protected] User One
[email protected] User Two
[email protected] User Three
Next, you will be prompted to select the role for the existing scopes
? Select role for scope myorg-projecta-environmentx (Workspace) [Admin]:
> Admin
Manager
Editor
Viewer
✗ Cancel
Finally, confirm the permissions.
Scope | Role
-------------------------------------------------|------
Workspace:myorg-projecta-environmentx | Admin
? Use these permissions?: [y/n] (y):
Non-Interactive Mode
You can also run the command by specifying the user ID and permission assignments directly. This allows for quick updates without interactive prompts.
$ quix cloud user permissions edit [email protected] --permission-assignments "[{Workspace:myorg-projecta-environmentx, Admin}]"
After setting or editing the permissions, you will be asked to confirm the changes. If confirmed, the updated permissions will be saved.