---
title: "Get user by ID"
method: GET
path: "/auth/users/{userId}"
tags: ["auth"]
---

# Get user by ID

`GET /auth/users/{userId}`

Get a specific user by ID (superadmin only)

## Path parameters

- `userId` string, required

## Response `200`

User retrieved successfully

- object
  - `success` boolean, required
  - `msg` string, required
  - `data` object — Response payload (varies by endpoint)
    - `_id` string
    - `firstName` string
    - `lastName` string
    - `email` string, email
    - `role` string[]
    - `profileImage` string — URL or path to profile image
    - `isActive` boolean
    - `teamId` string
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `403` — Insufficient permissions
- `404` — Resource not found
- `500` — Internal server error

## Changes

- **2025-08-11** `db719f9e3d34` — 1 info
  - endpoint added
- **2025-04-20** `b97ec6888b3c` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/bluewave-labs/apis/checkmate-api/changes/auth/users/:userId/get.md)

---

[API](https://skmtc.dev/bluewave-labs/apis/checkmate-api.md) · [All operations](https://skmtc.dev/bluewave-labs/apis/checkmate-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/bluewave-labs/checkmate-api/revisions/8453661342e1/schema)
