Users
Get roles for user
Get API resource roles assigned to the user with pagination.
get/api/users/{userId}/roles
Request
- Base URL: https://[tenant_id].logto.app
- URL: https://[tenant_id].logto.app/api/users/{userId}/roles
- Auth: OAuth 2 (client credentials, token URL /oidc/token, scopes: all)
Path parameters
userIdstring required
The unique identifier of the user.
Query parameters
pageinteger
Page number (starts from 1).
page_sizeinteger
Entries per page.
search_paramsobject
Search query parameters.
Response
An array of API resource roles assigned to the user.
Changes
No recorded changes to this operation across all 8 revisions of this API.