GET/organization/projects/{project_id}/groups

List groups with access to a project

Lists the groups that have access to a project. Use after to continue from the last group in a previous response, and set limit and order to control the page size and sort order.

4 parameters
project_idstringrequired
The unique identifier of the project whose groups to list.
limitintegeroptional
Maximum number of project groups to return, from 0 to 100. Defaults to 20 when omitted.
Default:20
afterstringoptional
ID of the last group from the previous response, used as the cursor for the next page.
orderstringoptional
Sort order for the returned groups: `asc` or `desc`. Defaults to `asc` when omitted.
Allowed:ascdescDefault:asc

5 status codes
200Returns a page of project group memberships, with `has_more` indicating whether more results are available and `next` providing the cursor for the next page.
objectstringrequired
Always `list`.
Allowed:list
dataarray<object>required
Project group memberships returned in the current page.
has_morebooleanrequired
Whether additional project group memberships are available.
nextstringrequired
Cursor to fetch the next page of results, or `null` when there are no more results.
400Returned when request parameters are invalid or the requested operation cannot be performed.
errorobjectrequired
403Returned when the authenticated user does not have permission to list groups for the project.
errorobjectrequired
Details about the permission error.
404Returned when the endpoint is unavailable or a requested group, user, or project is not found.
errorobjectrequired
429Returned when the request exceeds a rate limit.
errorobjectrequired

Error handling

A 400 is returned when request parameters are invalid or the operation cannot be performed; a 403 is returned when the authenticated user lacks permission; a 404 is returned when the endpoint is unavailable or a requested group, user, or project is not found; and a 429 is returned when a rate limit is exceeded. The project_id path parameter must identify the project to inspect. limit must be between 0 and 100, and order must be asc or desc.