Page cover

add

The cldkctl organization role add command defines a new role within the organization and specifies which services and permissions members assigned to this role can access. Administrators can create custom roles with specific privileges by defining viewer and editor permissions for different services.

Usage

cldkctl organization role add [flags]

Steps

Follow the steps below to run and view the result of this command:

  1. Prepare the details for your new role, including the role name, description, and the list of services that will have viewer and editor permissions.

  2. Run the following command in your terminal:

./cldkctl organization role add \

--name <role_name> \

--description "<description>" \

--editor <service_name> \

--viewer <service_name>

  1. Replace <role_name> with the name of your new role, with a short explanation of the role’s purpose, and <service_name> with the service names that will be assigned as editor or viewer.

  2. After running the command, wait for the process to complete until the CLI displays a success message confirming that the role has been created successfully.

Flags

Column
Description

-d, --description string

Description of the role.

--editor strings

Editor privileges for the specified services (comma-separated).

-h, --help

Help for the add command.

-n, --name string

Full name of the new role.

--viewer strings

Viewer privileges for the specified services (comma-separated).

Last updated