# Get roles for user **GET /api/users/{userId}/roles** Get API resource roles assigned to the user with pagination. ## Servers - Logto endpoint address.: https://[tenant_id].logto.app (Logto endpoint address.) ## Authentication methods - O auth2 ## Parameters #### Path parameters - **userId** (string) The unique identifier of the user. #### Query parameters - **page** (integer) Page number (starts from 1). - **page_size** (integer) Entries per page. - **search_params** (object) Search query parameters. ## Responses ### 200: An array of API resource roles assigned to the user. #### Body Parameters: application/json (array[object]) - **tenantId** (string) - **id** (string) - **name** (string) - **description** (string) - **type** (string) - **isDefault** (boolean) ### 400: Bad Request ### 401: Unauthorized ### 403: Forbidden ### 404: Not Found [Powered by Bump.sh](https://bump.sh)