Skip to content

Get current user's roles

GET
/api/v1/rbac/user/roles
curl --request GET \
--url https://localhost:8080/api/v1/rbac/user/roles \
--header 'Authorization: <Authorization>'

Return the authenticated user’s organization and project role assignments with derived scope

User roles with context

Media type application/json
object
organizationId
string
roles
Array<object>
object
organizationId
string
projectId
string
role
string
scope
string
userId
string
Example
{
"roles": [
{
"organizationId": "org-7",
"projectId": "",
"role": "organization_owner",
"scope": "organization"
}
]
}

Unauthorized - Authentication required

Media type application/json
object
error
string
error_description
string
Example
{
"error": "Unauthorized",
"error_description": "Invalid token"
}