---
title: "List user variables"
method: GET
path: "/v1/users/{user-id}/variables"
tags: ["Users"]
---

# List user variables

`GET /v1/users/{user-id}/variables`

## Request

- Base URL: `http://127.0.0.1:8000`
- URL: `http://127.0.0.1:8000/v1/users/{user-id}/variables`
- Auth: HTTP bearer

Return all variables (per-user preferences and other UI state) of the user as a
flat JSON object mapping variable name to value. Values are opaque strings: scalars
are stored as plain text, structured values as serialized JSON, and the reader
decides how to interpret them. A user may read their own variables; reading another
user's variables requires MANAGE_USERS access right.

## Path parameters

- `user-id` integer, required

## Query parameters

- `pattern` string

## Response `200`

Variables retrieved successfully

- object

## Other responses

- `400`: Invalid user ID
- `401`: Unauthorized
- `403`: Access denied (not self and no MANAGE_USERS right)
- `500`: Database failure

## Changes

- **2026-10-14** `2b33ef4bdb15`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/netxms/apis/netxms-api/changes/v1/users/:user-id/variables/get.md)

---

[API](https://skmtc.dev/netxms/apis/netxms-api.md) - [All operations](https://skmtc.dev/netxms/apis/netxms-api/llms.txt) - [OpenAPI document](https://skmtc.dev/netxms/apis/netxms-api/revisions/740d85ba6674?raw)
