Skip to content

cub group add-worker

cub group add-worker

Add a worker to a group

Synopsis

Add a worker's bot user to a group, so that the group's grants in entities' Permissions apply to the worker. Other users' groups are managed in the identity provider. The worker is named as /, by ID, or by a slug only one space holds. The worker picks up the change the next time it authenticates.

An organization admin or manager may change a group's workers. So may a member of the group who has Manage permission on the worker. An admin or manager who is not a member names the group by ID, since only members can look a group up by slug.

Examples:

  # Add a worker to a group
  cub group add-worker my-group my-space/my-worker
cub group add-worker <group> <worker> [flags]

Options

  -h, --help            help for add-worker
  -o, --output string   Output format. One of: json, yaml, name, wide, mutations, jq=<expr>, yq=<expr>, custom-columns=<spec>
      --quiet           No default output.
      --verbose         Detailed output, additive with default output

Options inherited from parent commands

      --context string   The context to use for this command
      --debug            Debug output

SEE ALSO