List members of an organization
get
/v2/organizations/{slug}/membersReturns a cursor-paginated list of organization members including their roles and project-scoped permissions.
OAuth scopes
- organizations:read
The fine-grained token must include the following permissions to access this endpoint:
- members_read
Path parameters
- slugRequiredstring
Organization slug
Query parameters
- pageOptionalobject
- filterOptionalobject
Response codes
- 200
- 401
- 403
- 429
Response (200)
{ "data": [ { "type": "organization_member", "id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", "attributes": { "username": "lorem", "primary_email": "lorem", "mfa_enabled": true, "is_sso_user": true, "avatar_url": "lorem", "roles": [ { "name": "developer", "scope": "organization", "projects": [ { "ref": "lorem", "name": "lorem" } ] } ] } } ], "links": { "first": "/v2/organizations/my-org/members?page[size]=10", "prev": "/v2/organizations/my-org/members?page[size]=10&page[before]=019adf7d-4513-74c5-bb9a-f1bc0f7a95d7", "next": "/v2/organizations/my-org/members?page[size]=10&page[after]=019adf7d-4513-7062-b292-78b86cc470a4", "last": "/v2/organizations/my-org/members?page[size]=10&page[after]=019adf7d-4513-71ba-b264-21900edb4295" }}{ "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Resource type.", "enum": [ "organization_member" ] }, "id": { "type": "string", "format": "uuid", "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$" }, "attributes": { "type": "object", "properties": { "username": { "type": "string", "description": "Member's username", "nullable": true }, "primary_email": { "type": "string", "description": "Member's primary email", "nullable": true }, "mfa_enabled": { "type": "boolean", "description": "Whether Multi-Factor Authentication is enabled for this member" }, "is_sso_user": { "type": "boolean", "description": "Whether this member is a Single Sign-On user" }, "avatar_url": { "type": "string", "description": "Member's avatar URL", "nullable": true }, "roles": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Role name. For project-scoped roles this is the base role name.", "example": "developer" }, "scope": { "type": "string", "enum": [ "organization", "project" ], "description": "Whether this role applies org-wide or is scoped to specific projects for the user." }, "projects": { "type": "array", "items": { "type": "object", "properties": { "ref": { "type": "string" }, "name": { "type": "string" } }, "required": [ "ref", "name" ] }, "description": "Project refs this role is scoped to. Empty array for org-level roles." } }, "required": [ "name", "scope", "projects" ] }, "description": "Roles assigned to this member. Includes both org-level and project-scoped roles." } }, "required": [ "username", "primary_email", "mfa_enabled", "is_sso_user", "avatar_url", "roles" ] } }, "required": [ "type", "id", "attributes" ] } }, "links": { "type": "object", "properties": { "first": { "type": "string", "description": "URL path to the first page if available.", "example": "/v2/organizations/my-org/members?page[size]=10", "nullable": true }, "prev": { "type": "string", "description": "URL path to the previous page.", "example": "/v2/organizations/my-org/members?page[size]=10&page[before]=019adf7d-4513-74c5-bb9a-f1bc0f7a95d7", "nullable": true }, "next": { "type": "string", "description": "URL path to the next page.", "example": "/v2/organizations/my-org/members?page[size]=10&page[after]=019adf7d-4513-7062-b292-78b86cc470a4", "nullable": true }, "last": { "type": "string", "description": "URL path to the last page if available.", "example": "/v2/organizations/my-org/members?page[size]=10&page[after]=019adf7d-4513-71ba-b264-21900edb4295", "nullable": true } }, "required": [ "prev", "next" ] } }, "required": [ "data", "links" ]}