Skip to content

cloud users permissions set

Overview

Sets the whole permissions of a user, replacing the current ones. Available roles: [Admin, Manager, Editor, Viewer]

Aliases: set

Usage:

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

Arguments:

  • <user-id> : id of the user

Options:

  • --scope <scope> : The scope of this permission
  • --role <role> : The role of this permission

How It Works

The set command is used to assign permissions to a user in your organization. This command replaces the current permissions with the ones specified.

  1. User Identification:

    • You can specify the user ID directly. If not provided, the command will enter interactive mode to select a user.
  2. Scope and Role Specification:

    • You can define the scope and role of the permissions. If not specified, the command will enter interactive mode to select projects, environments, and roles.

Note

If you just want to modify a specific permission instead, refer to this command.

Example Usage

Interactive Mode

Select the user:

$ quix cloud user permissions set
? 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

Then select the resource:

? Select resources:
> [ ] MyOrg
  [ ] Project A
    [X] Environment X
   [ ] ProjectB
    [ ] EnvironmentY

Use the arrow keys to navigate:  (Press <space> to select, <enter> to accept)

Select the role for this resource:

? Select role for scope Project A - Environment X (Workspace) []:
> Admin
  Manager
  Editor
  Viewer

Confirm the permissions:

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

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

Non-Interactive Mode

$ quix cloud user permissions set <userId> --scope Workspace:myorg-projecta-environmentx --role Admin

Tip

To get the user ID, you can use this command.