SPB Git

Repository Public

retrieve.md 1.8 KB 87 lines markdown

1---2title: Get RBAC Group3url: https://platform.claude.com/docs/en/api/beta/organization/rbac_groups/retrieve4---56# Get RBAC Group78**GET** `/v1/organizations/rbac_groups/{group_id}`910Retrieve an RBAC Group by ID.1112The RBAC Groups API is available to Claude Enterprise organizations only.1314## Path parameters1516- `group_id: string`1718  ID of the RBAC Group.1920## Returns2122- `BetaRBACGroup object`2324  - `type: "rbac_group"`2526    Object type.2728    For RBAC Groups, this is always `"rbac_group"`.2930    default: rbac_group3132  - `id: string`3334    ID of the RBAC Group.3536  - `created_at: string`3738    RFC 3339 timestamp of when the RBAC Group was created.3940    format: date-time4142  - `name: string`4344    Name of the RBAC Group. Not uniqueness-enforced.4546  - `roles: array of string or null`4748    RBAC Role IDs attached to this RBAC Group. Role attachment is managed in the admin settings and is read-only on this API. `null` means role data was temporarily unavailable — retry to distinguish from an empty list.4950  - `source_type: "direct" or "scim"`5152    How the RBAC Group was created: `"direct"` for groups created directly (for example, in the organization's admin settings), `"scim"` for groups provisioned by the identity provider.5354    - `"direct"`5556    - `"scim"`5758  - `updated_at: string`5960    RFC 3339 timestamp of when the RBAC Group was last updated.6162    format: date-time6364## Example6566```bash67curl https://api.anthropic.com/v1/organizations/rbac_groups/$GROUP_ID \68    -H 'anthropic-version: 2023-06-01' \69    -H "X-Api-Key: $ANTHROPIC_API_KEY"70```7172### Response (200)7374```json75{76  "id": "rbac_group_012rppKaSVsmTo6NqRDXQXNF",77  "created_at": "2024-10-30T23:58:27.427722Z",78  "name": "Engineering",79  "roles": [80    "rbac_role_016J8xVtKpDq3Wy9ZmN2hR4s"81  ],82  "source_type": "direct",83  "type": "rbac_group",84  "updated_at": "2024-10-30T23:58:27.427722Z"85}86```87
Files main
Menu

Theme