# List role members List all users assigned to a specific role within an organization. #### Path Parameters **`organization_id`** string required Organization ID (org_ prefixed string). **`role_id`** string required Role ID (role_ prefixed string). #### Query Parameters **`skip`** integer optional · Defaults to `0` Number of records to skip for pagination. **`limit`** integer optional · Defaults to `50` Number of records to return (max 100). ## Returns An object containing a `members` array and a `total` count. Each member includes `user_id`, `full_name`, `email`, `account_state`, and `avatar_url`. Request ```bash cURL curl "https://api.aitronos.com/v1/organizations/org_abc123/roles/role_xyz789/members?skip=0&limit=50" \ -H "Authorization: Bearer $ACCESS_TOKEN" ``` ```python Python SDK from aitronos import Aitronos client = Aitronos(api_key="your-api-key") members = client.organizations.roles.list_members( organization_id="org_abc123", role_id="role_xyz789", skip=0, limit=50, ) print(members) ``` ```python Python import requests response = requests.get( "https://api.aitronos.com/v1/organizations/org_abc123/roles/role_xyz789/members", headers={"Authorization": "Bearer YOUR_ACCESS_TOKEN"}, params={"skip": 0, "limit": 50}, ) print(response.json()) ``` ```javascript JavaScript const response = await fetch( "https://api.aitronos.com/v1/organizations/org_abc123/roles/role_xyz789/members?skip=0&limit=50", { headers: { Authorization: "Bearer YOUR_ACCESS_TOKEN" }, } ); const data = await response.json(); console.log(data); ``` Response ```json 200 OK { "members": [ { "user_id": "usr_abc123", "full_name": "Jane Smith", "email": "jane@example.com", "account_state": "active", "avatar_url": "https://example.com/avatar.jpg" }, { "user_id": "usr_def456", "full_name": "John Doe", "email": "john@example.com", "account_state": "active", "avatar_url": null } ], "total": 2 } ``` ```json 404 Not Found { "success": false, "error": { "code": "ROLE_NOT_FOUND", "message": "The requested role could not be found.", "system_message": "Role not found", "type": "client_error", "status": 404, "details": { "role_id": "role_nonexistent" }, "trace_id": "abc-123-def", "timestamp": "2026-01-15T10:30:00Z" } } ``` ## Related Resources - [Retrieve role](/docs/api-reference/organizations/roles/retrieve) - [Create custom role](/docs/api-reference/organizations/roles/create-role) - [Update custom role](/docs/api-reference/organizations/roles/update-role) - [Delete custom role](/docs/api-reference/organizations/roles/delete-role) - [Assign role member](/docs/api-reference/organizations/roles/assign-member) - [Remove role member](/docs/api-reference/organizations/roles/remove-member) - [List roles](/docs/api-reference/organizations/management/list-roles)