SPB Git

Repository Public

users.md 3.1 KB 171 lines markdown

1---2title: Users3url: https://platform.claude.com/docs/en/api/compliance/organizations/users4---56# Users78## List organization users910**GET** `/v1/compliance/organizations/{org_uuid}/users`1112List current user members of an organization.1314### Path parameters1516- `org_uuid: string`1718  The organization UUID1920### Query parameters2122- `limit: optional number`2324  Maximum results (default: 500, max: 1000)2526  default: 500, maximum: 1000, minimum: 12728- `page: optional string`2930  Opaque pagination token from a previous response's `next_page` field. Pass this to retrieve the next page of results. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.3132### Headers3334- `"x-api-key": optional string`3536### Returns3738- `data: array of object`3940  List of current organization members sorted by organization join date ascending4142  - `id: string`4344    User identifier (tagged ID)4546  - `created_at: string`4748    User account creation timestamp4950    format: date-time5152  - `email: string`5354    User's current email address5556  - `full_name: string`5758    User's current full name5960  - `organization_role: "admin" or "billing" or "claude_code_user" or 8 more`6162    User's built-in role within the organization. This is distinct from any custom RBAC roles that may also be assigned.6364    - `"admin"`6566    - `"billing"`6768    - `"claude_code_user"`6970    - `"developer"`7172    - `"managed"`7374    - `"membership_admin"`7576    - `"owner"`7778    - `"parent_org_admin"`7980    - `"parent_org_owner"`8182    - `"primary_owner"`8384    - `"user"`8586- `has_more: boolean`8788  Whether more records exist beyond the current result set8990- `next_page: string or null`9192  Token to retrieve the next page. Use this as the 'page' parameter in your next request9394### Example9596```bash97curl https://api.anthropic.com/v1/compliance/organizations/$ORG_UUID/users \98    -H 'anthropic-version: 2023-06-01' \99    -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"100```101102#### Response (200)103104```json105{106  "data": [107    {108      "id": "user_01WCz1FkmYMm4gnmykNKUu3Q",109      "created_at": "2025-03-12T18:22:41.123456Z",110      "email": "jane.doe@example.com",111      "full_name": "Jane Doe",112      "organization_role": "admin"113    }114  ],115  "has_more": true,116  "next_page": "cGFnZV90b2tlbl9leGFtcGxlXzE3MzQ1Njc4OTA="117}118```119120## Domain types121122### User List Response123124- `UserListResponse object`125126  User member information for compliance responses.127128  - `id: string`129130    User identifier (tagged ID)131132  - `created_at: string`133134    User account creation timestamp135136    format: date-time137138  - `email: string`139140    User's current email address141142  - `full_name: string`143144    User's current full name145146  - `organization_role: "admin" or "billing" or "claude_code_user" or 8 more`147148    User's built-in role within the organization. This is distinct from any custom RBAC roles that may also be assigned.149150    - `"admin"`151152    - `"billing"`153154    - `"claude_code_user"`155156    - `"developer"`157158    - `"managed"`159160    - `"membership_admin"`161162    - `"owner"`163164    - `"parent_org_admin"`165166    - `"parent_org_owner"`167168    - `"primary_owner"`169170    - `"user"`171
Files main
Menu

Theme