Get RBAC Role
api/admin/rbac_roles/retrieve
Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
api/admin/rbac_roles/retrieve Changed · +14 / -15 lines
# Get RBAC Role ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Get RBAC Role ### Path Parameters ### Header Parameters ### Returns ### Example #### Response
---- -title: Get RBAC Role -url: https://platform.claude.com/docs/en/api/admin/rbac_roles/retrieve ---- +# Get RBAC Role -## Get RBAC Role +**GET** `/v1/organizations/rbac_roles/{role_id}` -**get** `/v1/organizations/rbac_roles/{role_id}` - Retrieve an RBAC Role by ID. The RBAC Roles API is in beta and available to Claude Enterprise organizations only. Requests must send the `ce-user-management-2026-07-13` value in the `anthropic-beta` header. -### Path Parameters +## Path parameters - `role_id: string` ID of the RBAC Role. -### Header Parameters +## Headers - `"anthropic-beta": optional array of string`
To use multiple betas, use a comma separated list like `beta1,beta2` or specify the header multiple times for each beta. -### Returns +## Returns -- `RbacRole object { id, created_at, name, 2 more }` +- `RbacRole object` - `id: string`
RFC 3339 datetime string indicating when the RBAC Role was created. + format: date-time + - `name: string` Name of the RBAC Role.
For RBAC Roles, this is always `"rbac_role"`. - - `"rbac_role"` + default: rbac_role - `updated_at: string` RFC 3339 datetime string indicating when the RBAC Role was last updated. -### Example + format: date-time -```http +## Example + +```bash curl https://api.anthropic.com/v1/organizations/rbac_roles/$ROLE_ID \ -H 'anthropic-version: 2023-06-01' \ -H "Authorization: Bearer $ANTHROPIC_OAUTH_TOKEN" ``` -#### Response +### Response (200) ```json {