rpk security role list

List roles created in Redpanda.

Examples

List all roles in Redpanda:

rpk security role list
List all roles assigned to the user red
rpk security role list --principal red

List all roles with the prefix "agent-":

rpk security role list --prefix "agent-"

Usage

rpk security role list [flags]

Aliases

list, ls

Flags

Value Type Description

-h, --help

-

Help for list.

--prefix

string

Return the roles matching the specified prefix.

--principal

string

Return the roles matching the specified principal; if no principal prefix is given, User: is used.

--config

string

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

-X, --config-opt

stringArray

Override rpk configuration settings. See rpk -X or execute rpk -X help for inline detail or rpk -X list for terser detail.

--format

string

Output format. Possible values: json, yaml, text, wide, help. Default: text.

--profile

string

Profile to use. See rpk profile for more details.

-v, --verbose

-

Enable verbose logging.