permissions
Get role
Changed onRetrieve details about a specific role including its assigned permissions.
Required Permissions
Your root key must have the following permission:
- rbac.*.read_role
post/v2/permissions.getRole
Request
- Base URLhttps://api.unkey.com
- URLhttps://api.unkey.com/v2/permissions.getRole
- AuthHTTP bearer
Request body
Example request
{
"role": "role_1234567890abcdef"
}Response
Role retrieved successfully
Example response
{
"meta": {
"requestId": "req_123"
},
"data": {
"id": "role_1234567890abcdef",
"name": "support.readonly",
"description": "Provides read-only access for customer support representatives to view user accounts and support tickets",
"permissions": [
{
"id": "perm_1234567890abcdef",
"name": "users.read",
"slug": "users-read",
"description": "Allows reading user profile information and account details"
}
]
}
}Changes
- breaking
the
request property's maxLength was decreased to128 - info
the
request property's minLength was decreased from3to1 - info
removed the pattern
^[a-zA-Z0-9_:\-\.\*]+$from the request property
- breaking
- info
the endpoint scheme security
bearerwas added to the API - info
the endpoint scheme security
rootKeywas removed from the API
- info