# Get role users **GET /api/roles/{id}/users** Get users who have the role assigned with pagination. ## Servers - Logto endpoint address.: https://[tenant_id].logto.app (Logto endpoint address.) ## Authentication methods - O auth2 ## Parameters #### Path parameters - **id** (string) The unique identifier of the role. #### 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 users who have the role assigned. #### Body Parameters: application/json (array[object]) - **id** (string) - **username** (string | null) - **primaryEmail** (string | null) - **primaryPhone** (string | null) - **name** (string | null) - **avatar** (string | null) - **customData** (object) arbitrary - **identities** (object) - **lastSignInAt** (number | null) - **createdAt** (number) - **updatedAt** (number) - **profile** (object) - **applicationId** (string | null) - **isSuspended** (boolean) - **hasPassword** (boolean) - **ssoIdentities** (array[object]) ### 400: Bad Request ### 401: Unauthorized ### 403: Forbidden ### 404: Not Found [Powered by Bump.sh](https://bump.sh)