---
title: "List group organization role assignments"
method: GET
path: "/organization/groups/{group_id}/roles"
tags: ["Group organization role assignments"]
---

# List group organization role assignments

`GET /organization/groups/{group_id}/roles`

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

## Path parameters

- `group_id` string, required

## Query parameters

- `limit` integer
- `after` string
- `order` 'asc' | 'desc'

## Response `200`

Group organization role assignments listed successfully.

- RoleListResource — Paginated list of roles assigned to a principal.
  - `object` 'list', required — Always `list`.
  - `data` AssignedRoleDetails[], required — Role assignments returned in the current page.
    - `id` string, required — Identifier for the role.
    - `name` string, required — Name of the role.
    - `permissions` string[], required — Permissions associated with the role.
    - `resource_type` string, required — Resource type the role applies to.
    - `predefined_role` boolean, required — Whether the role is predefined by OpenAI.
    - `description` string, nullable, required — Description of the role.
    - `created_at` integer, nullable, required — When the role was created.
    - `updated_at` integer, nullable, required — When the role was last updated.
    - `created_by` string, nullable, required — Identifier of the actor who created the role.
    - `created_by_user_obj` object, nullable, required — User details for the actor that created the role, when available.
    - `metadata` object, nullable, required — Arbitrary metadata stored on the role.
    - `assignment_sources` object[], nullable, required — Principals from which the role assignment is inherited, when available.
      - `principal_id` string, required
      - `principal_type` string, required
  - `has_more` boolean, required — Whether additional assignments are available when paginating.
  - `next` string, nullable, required — Cursor to fetch the next page of results, or `null` when there are no more assignments.

---

[API](https://skmtc.net/openai/apis/openai-api.md) · [All operations](https://skmtc.net/openai/apis/openai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openai/openai-api/versions/dcd35773a322/schema)
