---
title: "Get information of a user by ID"
method: GET
path: "/api/v1/users/view/{userId}"
tags: ["Users"]
---

# Get information of a user by ID

`GET /api/v1/users/view/{userId}`

## Path parameters

- `userId` integer, required

## Response `200`

User response

- User
  - `id` integer
  - `uuid` string, uuid
  - `username` string
  - `role_id` integer
  - `individual_id` integer
  - `disabled` boolean
  - `created` string, datetime
  - `modified` string, datetime
  - `organisation_id` integer

## Other responses

- `403` — Authentication failed. Please make sure you pass the API key of an API enabled user along in the Authorization header.
- `405` — Method not allowed. Your User Role is not allowed to access this resource.
- `default` — Unexpected API error

## Changes

- **2022-01-10** `8c8e25f63b66` — 1 info
  - added the non-success response with the status `405`
- **2022-01-07** `06f057d4c0c4` — 2 breaking, 2 info
  - removed the required property `name` from the response with the `403` status
  - removed the required property `name` from the response with the `default` status
  - added the required property `code` to the response with the `403` status
  - added the required property `code` to the response with the `default` status
- **2022-01-07** `75b84299e5fa` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/cerebrate-project/apis/cerebrate-project-api/changes/api/v1/users/view/:userId/get.md)

---

[API](https://skmtc.dev/cerebrate-project/apis/cerebrate-project-api.md) · [All operations](https://skmtc.dev/cerebrate-project/apis/cerebrate-project-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cerebrate-project/apis/cerebrate-project-api/revisions/a54bb2719fbb?raw)
