SPB Git

Repository Public

retrieve.md 1.3 KB 90 lines markdown

1---2title: Get User3url: https://platform.claude.com/docs/en/api/beta/organization/users/retrieve4---56# Get User78**GET** `/v1/organizations/users/{user_id}`910Retrieve a member of the organization by user ID.1112## Path parameters1314- `user_id: string`1516  ID of the User.1718## Returns1920- `BetaOrganizationUser object`2122  - `type: "user"`2324    Object type.2526    For Users, this is always `"user"`.2728    default: user2930  - `id: string`3132    ID of the User.3334  - `added_at: string`3536    RFC 3339 datetime string indicating when the User joined the Organization.3738    format: date-time3940  - `email: string`4142    Email of the User.4344  - `name: string`4546    Name of the User.4748  - `role: BetaOrganizationRole`4950    Organization role of the User.5152    - `"admin"`5354    - `"billing"`5556    - `"claude_code_user"`5758    - `"developer"`5960    - `"managed"`6162    - `"membership_admin"`6364    - `"owner"`6566    - `"primary_owner"`6768    - `"user"`6970## Example7172```bash73curl https://api.anthropic.com/v1/organizations/users/$USER_ID \74    -H 'anthropic-version: 2023-06-01' \75    -H "X-Api-Key: $ANTHROPIC_API_KEY"76```7778### Response (200)7980```json81{82  "id": "user_01WCz1FkmYMm4gnmykNKUu3Q",83  "added_at": "2024-10-30T23:58:27.427722Z",84  "email": "user@emaildomain.com",85  "name": "Jane Doe",86  "role": "admin",87  "type": "user"88}89```90
Files main
Menu

Theme