Sample - OpenAI API
GET/projects/{project_id}/groups/{group_id}/roles

List project group role assignments

Lists the project roles assigned to a group within a project.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

5 parameters
project_idstringrequired
The ID of the project to inspect.
group_idstringrequired
The ID of the group to inspect.
limitintegeroptional
A limit on the number of project role assignments to return.
afterstringoptional
Cursor for pagination. Provide the value from the previous response's `next` field to continue listing project roles.
orderstringoptional
Sort order for the returned project roles.
Allowed:ascdesc

2 status codes
200Project group role assignments listed successfully.
objectstringrequired
Always `list`.
Allowed:list
dataarray<object>required
Role assignments returned in the current page.
has_morebooleanrequired
Whether additional assignments are available when paginating.
nextstringrequired
Cursor to fetch the next page of results, or `null` when there are no more assignments.
429The request was rejected because a rate limit was exceeded.
errorobjectrequired

Error handling

A 429 is returned: The request was rejected because a rate limit was exceeded.