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
Request
Responses
- 200
inactiveUsersSchema
- application/json
- Schema
- Example (from schema)
Schema
- version integer requiredPossible values: >= 1The version of this schema. Used to keep track of compatibility 
- inactiveUsers object[]required- The list of users that are flagged as inactive Array [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 date-time nullable- The last time this user logged in createdAt date-time- The user was created at this time patSeenAt date-time nullable- The last time this user's PAT token (if any) was used ]
{
  "version": 1,
  "inactiveUsers": [
    {
      "id": 123,
      "name": "Ned Ryerson",
      "email": "user@example.com",
      "username": "nedryerson",
      "seenAt": "2024-01-25T11:42:00.345Z",
      "createdAt": "2023-12-31T23:59:59.999Z",
      "patSeenAt": "2024-01-01T23:59:59.999Z"
    }
  ]
}
Loading...