Sample - OpenAI API
GET/organization/groups/{group_id}/roles

List group organization role assignments

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

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

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

2 status codes
200Group organization 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.