---
title: "Inspect a user"
method: GET
path: "/users/{id}"
tags: ["users"]
---

# Inspect a user

`GET /users/{id}`

Retrieve details about a user.
User passwords are filtered out, and should never be accessible.
**Access policy**: authenticated

## Path parameters

- `id` integer, required

## Response `200`

Success

- PortainerUser
  - `Id` integer, required — User Identifier
  - `Role` 0 | 1 | 2, required
  - `ThemeSettings` PortainerUserThemeSettings
    - `color` 'dark' | 'light' | 'highcontrast' | 'auto' | '' — Color represents the color theme of the UI
  - `TokenIssueAt` integer
  - `UseCache` boolean
  - `Username` string, required

## Other responses

- `400` — Invalid request
- `403` — Permission denied
- `404` — User not found
- `500` — Server error

---

[API](https://skmtc.net/portainer/apis/portainerce-api.md) · [All operations](https://skmtc.net/portainer/apis/portainerce-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/portainer/portainerce-api/versions/c0b0975cd11b/schema)
