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 required
Possible values:
>= 1
The 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 requiredThe user id
name string nullableName of the user
email stringEmail of the user
username string nullableA unique username for the user
seenAt date-time nullableThe last time this user logged in
createdAt date-timeThe user was created at this time
patSeenAt date-time nullableThe 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...