rpk security role assign
Assign a Redpanda role to a principal.
The --principal flag accepts principals with the format <PrincipalPrefix>:<Principal>. If PrincipalPrefix is not provided, then defaults to User:.
Examples
Assign role redpanda-admin to user red:
rpk security role assign redpanda-admin --principal red
Assign role redpanda-admin to users red and panda:
rpk security role assign redpanda-admin --principal red,panda
Assign role topic-reader to group analytics:
rpk security role assign topic-reader --principal Group:analytics
Assign role ops-admin to both a user and a group:
rpk security role assign ops-admin --principal alice,Group:sre
Flags
| Value | Type | Description |
|---|---|---|
|
- |
Help for assign. |
|
strings |
Principal to assign the role to (repeatable). |
|
string |
Redpanda or |
|
stringArray |
Override |
|
string |
Output format. Possible values: |
|
string |
Profile to use. See |
|
- |
Enable verbose logging. |