---
title: "Gets inactive users"
method: GET
path: "/api/admin/user-admin/inactive"
tags: ["Users"]
---

# Gets inactive users

`GET /api/admin/user-admin/inactive`

Gets all inactive users. An inactive user is a user that has not logged in in the last 180 days

## Response `200`

inactiveUsersSchema

- InactiveUsersSchema — A list of users that has been flagged as inactive
  - `version` integer, required — The version of this schema. Used to keep track of compatibility
  - `inactiveUsers` InactiveUserSchema[], required — The list of users that are flagged as inactive
    - `id` integer, required — The user id
    - `name` string, nullable — Name of the user
    - `email` string — Email of the user
    - `username` string, nullable — A unique username for the user
    - `seenAt` string, date-time, nullable — The last time this user logged in
    - `createdAt` string, date-time — The user was created at this time
    - `patSeenAt` string, date-time, nullable — The last time this user's PAT token (if any) was used

---

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