Get roles for user
Get API resource roles assigned to the user with pagination.
GET
/api/users/{userId}/roles
curl \
--request GET 'https://[tenant_id].logto.app/api/users/{userId}/roles' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
{
"tenantId": "string",
"id": "string",
"name": "string",
"description": "string",
"type": "User",
"isDefault": true
}
]