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

# Get user by ID

`GET /acc-api/users/{userId}`

Returns a specific user by their ID

## Path parameters

- `userId` integer, required

## Response `200`

Successfully retrieved user

- User
  - `id` integer, required
  - `username` string, required
  - `role` 'admin' | 'editor' | 'viewer' | 'superadmin', required — User's role name
  - `profile` object, nullable
    - `firstName` string
    - `lastName` string
    - `email` string, email
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `401` — Unauthorized
- `404` — User not found

## Changes

- **2026-07-17** `c863d4c0adcd` — 1 warning
  - added the new `superadmin` enum value to the `role` response property for the response status `200`
- **2025-06-18** `4e8707cf3e99` — 1 info
  - added the optional property `profile` to the response with the `200` status
- **2025-06-13** `1609c18b1e7f` — 1 warning, 1 info
  - removed the optional property `profile` from the response with the `200` status
  - removed the `superadmin` enum value from the `role` response property for the response status `200`

[Change history](https://skmtc.dev/nimtable/apis/nimtable-account-api/changes/acc-api/users/:userId/get.md)

---

[API](https://skmtc.dev/nimtable/apis/nimtable-account-api.md) · [All operations](https://skmtc.dev/nimtable/apis/nimtable-account-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nimtable/nimtable-account-api/revisions/c863d4c0adcd/schema)
