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

# GET /api/users

`GET /api/users`

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

## Query parameters

- `cursor` string — The pagination cursor value.
- `page_size` integer — Number of results to return per page.
- `doctor` integer

## Response `200`

OK

- object — Paginated Result
  - `previous` string — Previous paginated page
  - `data` UserProfile[] — result data
    - `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.
  - `next` string — Next Paginated page

## 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)
