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