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

# Get user by id

`GET /users/{id}`

## Request

- Base URL: `https://localhost:8446/api/v2`
- URL: `https://localhost:8446/api/v2/users/{id}`
- Auth: API key in header `Authorization`

Returns user info.

## Path parameters

- `id` number, required

## Response `200`

Successful response

- object
  - `id` number, required: User id
  - `type` string, required: User type
  - `user_group_ids` number, required: User groups id
  - `username` string: User name. Only for internal users
  - `email` string: User email. Only for internal, azure user, oauth user and okta user
  - `is_blocked` boolean: User blocking state. Only for internal users
  - `block_reason` string: Block reason. Only for internal users
  - `blocked_at` number: Blocked at (in seconds). Only for internal users
  - `enabled_2fa` boolean: User 2fa state. Only for internal users
  - `failed_login_attempts` number: Failed login attempts. Only for internal users
  - `password_exp` number: Password will expire at (in seconds). Only for internal users
  - `token_exp` number: Token will expire at (in seconds). Only for azure user and okta user
  - `name` number: Name. Only for ldap user, azure user, oauth user, ldap group, ldap user(by group), azure service principal, okta user and okta oauth user
  - `active` boolean, required: Is active or not. Returns false for internal users if local accounts are disabled. Returns false for ldap users, ldap group and ldap user(by group) if AD integration is disabled. Returns false for azure user and azure service principal if Azure AD integration is disabled. Returns false for okta user and okta oauth user if Okta integration is disabled.

## Other responses

- `default`: Error response. Depending on the error, either a 4xx or 5xx response status is returned.

---

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