Skip to content

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]

Aliases: edit

Usage:

quix cloud users permissions edit [<user-id>] [options]

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:
> john.doe@myorg.com                    John Doe
  jane.doe@myorg.com                    Jane Doe
  user1@myorg.com                       User One
  user2@myorg.com                       User Two
  user3@myorg.com                       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 user1@myorg.com --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.

  Scope                                           | Role
 -------------------------------------------------|------
  Workspace:myorg-projecta-environmentx           | Admin

? Use these permissions?: [y/n] (y):