---
title: "GET /api/users/{id}"
method: GET
path: "/api/users/{id}"
tags: ["Administrative"]
---

# GET /api/users/{id}

`GET /api/users/{id}`

Retrieve an existing user, `/api/users/current` can be used to identify logged in user, it will redirect to `/api/users/{current_user_id}`

## Path parameters

- `id` string, required

## Query parameters

- `doctor` integer

## Response `200`

OK

- UserProfile
  - `username` string
  - `doctor` string — For staff members, this is their primary physician's ID. For doctors, it is their own ID.
  - `practice_group` string — The ID of the practice group this user belongs to. This can be used to identify users in the same practice.
  - `is_doctor` string — Mutually exclusive with `is_staff`
  - `is_staff` string — Mutually exclusive with `is_doctor`
  - `staff` integer, nullable — The ID used by /api/staff. This will be null if `is_staff` is false.
  - `id` string
  - `permissions` string — Permissions the user has.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Permission Denied
- `404` — Not Found
- `405` — Method Not Allowed
- `500` — Internal Server Error

---

[API](https://skmtc.net/drchrono/apis/untitled-api.md) · [All operations](https://skmtc.net/drchrono/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/drchrono/untitled-api/revisions/e595797fe800/schema)
