Get roles for user
GET
/api/users/{userId}/roles
Get API resource roles assigned to the user with pagination.
Path parameters
-
userId string Required
The unique identifier of the user.
GET /api/users/{userId}/roles
curl \
-X GET https://[tenant_id].logto.app/api/users/{userId}/roles
Response examples (200)
[
{
"id": "string",
"name": "string",
"description": "string",
"type": "User"
}
]