---
title: "Retrieves an organization role assigned to a user."
method: GET
path: "/organization/users/{user_id}/roles/{role_id}"
tags: ["User organization role assignments"]
---

# Retrieves an organization role assigned to a user.

`GET /organization/users/{user_id}/roles/{role_id}`

## Path parameters

- `user_id` string, required
- `role_id` string, required

## Response `200`

Organization role retrieved for the user successfully.

- AssignedRoleDetails — Detailed information about a role assignment entry returned when listing assignments.
  - `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

---

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