Gets a list of Role names that the current authenticated user is a member of on the current Redpanda broker. This is useful for clients to determine their own permissions.
POST
/redpanda.core.admin.v2.SecurityService/ListCurrentUserRoles
curl \
--request POST 'http://localhost:9644/redpanda.core.admin.v2.SecurityService/ListCurrentUserRoles' \
--header "Content-Type: application/json" \
--header "Connect-Protocol-Version: 1" \
--header "Connect-Timeout-Ms: 42.0"
Request examples
# Headers
Connect-Protocol-Version: 1
Connect-Timeout-Ms: 42.0
# Payload
{}
Response examples (200)
{
"roles": [
"string"
]
}
Response examples (default)
{
"code": "not_found",
"details": [
{
"debug": {},
"type": "string",
"value": "@file"
}
],
"message": "string"
}