Cloud

rpk security role unassign

Unassign a Redpanda role from a principal.

The --principal flag accepts principals with the format '<PrincipalPrefix>:<Principal>'. If 'PrincipalPrefix' is not provided, then defaults to 'User:'.

Usage

rpk security role unassign <role> --principal <principals...> [flags]

Aliases

rpk security role remove

Examples

This section provides examples of how to use rpk security role unassign.

Unassign role redpanda-admin from user red.

rpk security role unassign redpanda-admin --principal red

Unassign role redpanda-admin from users red and panda.

rpk security role unassign redpanda-admin --principal red,panda

Unassign role topic-reader from group contractors.

rpk security role unassign topic-reader --principal Group:contractors

Flags

Value Type Description

--principal

stringSlice

Principal to unassign the role from (repeatable).

Global flags

Value Type Description

--config

string

Redpanda or rpk config file; default search paths are ~/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml.

-X, --config-opt

stringArray

Override rpk configuration settings; -X help for detail or -X list for terser detail.

--ignore-profile

bool

Ignore rpk.yaml and redpanda.yaml; use default settings.

--profile

string

rpk profile to use.

-v, --verbose

bool

Enable verbose logging.