List project collaborators
api/compliance/apps/projects/collaborators/list
Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
api/compliance/apps/projects/collaborators/list Changed · +28 / -23 lines
# List project collaborators ## Path parameters ## Query parameters ## Headers ## Returns ## Example ### Response (200) ## List project collaborators ### Path Parameters ### Query Parameters ### Header Parameters ### Returns ### Example #### Response
---- -title: List project collaborators -url: https://platform.claude.com/docs/en/api/compliance/apps/projects/collaborators/list ---- +# List project collaborators -## List project collaborators +**GET** `/v1/compliance/apps/projects/{project_id}/collaborators` -**get** `/v1/compliance/apps/projects/{project_id}/collaborators` - List the users, groups, and organization-wide grants on a project. Each entry represents one active role assignment on the project. Principals
RBAC group, the whole organization, or all holders of an organization-level role. -### Path Parameters +## Path parameters - `project_id: string` The project ID (tagged ID, e.g., claude_proj_abc123) -### Query Parameters +## Query parameters - `limit: optional number` Maximum results (default: 20, max: 100) + default: 20, maximum: 100, minimum: 1 + - `page: optional string` Opaque pagination token from a previous response's `next_page` field. Pass this to retrieve the next page of results. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice. -### Header Parameters +## Headers - `"x-api-key": optional string` -### Returns +## Returns -- `data: array of object { granted_at, role, type, user_id } or object { granted_at, group_id, role, type } or object { granted_at, organization_uuid, role, type } or object { granted_at, organization_role, role, type }` +- `data: array of object or object or object or object` List of collaborators sorted chronologically by granted_at, tie break by the underlying role-assignment UUID - - `ComplianceProjectUserCollaborator object { granted_at, role, type, user_id }` + - `ComplianceProjectUserCollaborator object` An individual user granted a role on a project.
When this collaborator was granted access (RFC 3339 format) + format: date-time + - `role: "admin" or "editor" or "owner" or "viewer"` Role granted on the project
Discriminator marking this as an individual user collaborator - - `"user"` + default: user - `user_id: string or null` Identifier of the user granted access (tagged ID), or null if their account has since been deleted - - `ComplianceProjectGroupCollaborator object { granted_at, group_id, role, type }` + - `ComplianceProjectGroupCollaborator object` An RBAC group granted a role on a project.
When this collaborator was granted access (RFC 3339 format) + format: date-time + - `group_id: string` Identifier of the group granted access (tagged ID)
Discriminator marking this as a group collaborator - - `"group"` + default: group - - `ComplianceProjectOrganizationCollaborator object { granted_at, organization_uuid, role, type }` + - `ComplianceProjectOrganizationCollaborator object` An entire organization granted a role on a project.
When this collaborator was granted access (RFC 3339 format) + format: date-time + - `organization_uuid: string` UUID of the organization granted access
Discriminator marking this as an organization-wide grant - - `"organization"` + default: organization - - `ComplianceProjectOrganizationRoleCollaborator object { granted_at, organization_role, role, type }` + - `ComplianceProjectOrganizationRoleCollaborator object` All holders of an organization-level role granted a role on a project.
When this collaborator was granted access (RFC 3339 format) + format: date-time + - `organization_role: string` The organization-level role whose holders are granted access
Discriminator marking this as a grant to all organization members holding a specific org-level role - - `"organization_role"` + default: organization_role - `has_more: boolean`
To get the next page, use the 'next_page' from the current response as the 'page' in your next request -### Example +## Example -```http +```bash curl https://api.anthropic.com/v1/compliance/apps/projects/$PROJECT_ID/collaborators \ -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY" ``` -#### Response +### Response (200) ```json {