Cloud

rpk security role list

List roles created in Redpanda.

Usage

rpk security role list [flags]

Aliases

rpk security role ls

Examples

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

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-"

List all roles assigned to the group analytics.

rpk security role list --principal Group:analytics

Flags

Value Type Description

--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.

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.