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