---
title: "Get User"
method: GET
path: "/api/auth/user/{user_id}"
tags: ["Auth API"]
---

# Get User

`GET /api/auth/user/{user_id}`

## Request

- The document declares no server URL.
- Auth: none declared

Get a specific user's details including their roles.

Args:
    user_id: The user ID to fetch

Returns:
    UserWithRoles object

## Path parameters

- `user_id` string, required

## Response `200`

Successful Response

- UserWithRoles: User record with role assignments.
  - `id` string, required
  - `created_at` string, date-time, nullable
  - `created_by` string, nullable
  - `roles` UserRole[]
    - `role_name` string, required
    - `assigned_by` string, required
    - `assigned_at` string, date-time, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-08-03** `b9d312a13f5d`: 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2026-04-08** `a8157dc3279d`: 2 breaking
  - response property `created_at` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - response property `created_by` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
- **2026-02-27** `3b4b243276b5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/nvidia/apis/nvidia-corporation-osmo-api/changes/api/auth/user/:user_id/get.md)

---

[API](https://skmtc.dev/nvidia/apis/nvidia-corporation-osmo-api.md) - [All operations](https://skmtc.dev/nvidia/apis/nvidia-corporation-osmo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nvidia/apis/nvidia-corporation-osmo-api/revisions/845585a71dbb?raw)
