Get an admin role.
GET
/api/admin/admin-roles/{id}
Code sample: Shell / cURL
curl --request GET \ --url https://auth.example.com/api/admin/admin-roles/example \ --header 'Authorization: Bearer <token>'Returns a tenant or system Admin role plus assigned user count and assigned user ids. Tenant isolation is enforced before returning custom roles.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Admin role id.
Responses
Section titled “ Responses ”Admin role detail response.
Media type application/json
object
id
required
string
tenant_id
required
string
name
required
string
display_name
string | null
description
string | null
permissions
required
Array<string>
hierarchy_level
required
integer
is_system
required
boolean
role_type
required
string
inherits_from
string | null
created_at
required
integer format: int64
updated_at
required
integer format: int64
assigned_user_count
required
integer
assigned_user_ids
required
Array<string>
Example
{ "role_type": "system"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}