SPB Git

Repository Public

create.md 2.0 KB 93 lines markdown

1---2title: Create RBAC Group3url: https://platform.claude.com/docs/en/api/beta/organization/rbac_groups/create4---56# Create RBAC Group78**POST** `/v1/organizations/rbac_groups`910Create an RBAC Group in the Claude Enterprise tenant. Groups created via the API have source type `"direct"`.1112The RBAC Groups API is available to Claude Enterprise organizations only.1314## Body parameters1516- `name: string`1718  Name of the RBAC Group. Not uniqueness-enforced.1920  maxLength: 255, minLength: 12122## Returns2324- `BetaRBACGroup object`2526  - `type: "rbac_group"`2728    Object type.2930    For RBAC Groups, this is always `"rbac_group"`.3132    default: rbac_group3334  - `id: string`3536    ID of the RBAC Group.3738  - `created_at: string`3940    RFC 3339 timestamp of when the RBAC Group was created.4142    format: date-time4344  - `name: string`4546    Name of the RBAC Group. Not uniqueness-enforced.4748  - `roles: array of string or null`4950    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.5152  - `source_type: "direct" or "scim"`5354    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.5556    - `"direct"`5758    - `"scim"`5960  - `updated_at: string`6162    RFC 3339 timestamp of when the RBAC Group was last updated.6364    format: date-time6566## Example6768```bash69curl https://api.anthropic.com/v1/organizations/rbac_groups \70    -H 'Content-Type: application/json' \71    -H 'anthropic-version: 2023-06-01' \72    -H "X-Api-Key: $ANTHROPIC_API_KEY" \73    -d '{74          "name": "Engineering"75        }'76```7778### Response (200)7980```json81{82  "id": "rbac_group_012rppKaSVsmTo6NqRDXQXNF",83  "created_at": "2024-10-30T23:58:27.427722Z",84  "name": "Engineering",85  "roles": [86    "rbac_role_016J8xVtKpDq3Wy9ZmN2hR4s"87  ],88  "source_type": "direct",89  "type": "rbac_group",90  "updated_at": "2024-10-30T23:58:27.427722Z"91}92```93
Files main
Menu

Theme