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

# Fetch user

`GET /users/{id}`

## Path parameters

- `id` integer, required

## Response `200`

OK

- object
  - `id` integer, required — The ID of the user
  - `resource_type` 'User', required — The resource type of the user
  - `name` string, required — The name of the user
  - `email` string, email, required — The email of the user.
  - `created_at` string, date-time, required — When the user was created
  - `updated_at` string, date-time, required — When the user was updated
  - `metadata` object, required — The metadata for the user. - Only basic types are allowed: string, null, integer, float, boolean. - Keys have a limit of 50 characters. - Values have a limit of 500 characters. - Keys number is limited to 50.
  - `image` string, uri, nullable, required — The url to the image of the user.
  - `otp_required_for_login` boolean, required — Whether OTP/2FA is required for login.
  - `password_flow_enabled` boolean, required — Whether the user can login with password flow. Only relevant for organizations.
  - `access_enabled` boolean, required — Whether the user is allowed to access locks and elevators. If the user is managed by SCIM, user access will be disabled unless *both* the `access_enabled` field and `scim_access_enabled` fields are set to `true`.
  - `last_accessed_at` string, date-time, nullable, required — When the user last accessed a door.
  - `scim_access_enabled` boolean, required — Whether the user is allowed to access locks and elevators. This field is read-only and can only be managed using SCIM. (See `access_enabled`) It will always be set to `true` if the user is not managed by SCIM.
  - `notes` string, nullable, required — The notes for the user.
  - `organization_id` integer, required — The organization ID of the user
  - `confirmed` boolean, required
  - `groups_count` integer, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

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