Gets inactive users
GET <your-unleash-url>/api/admin/user-admin/inactive
Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
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
{
"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"
}
]
}
Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
Request
Request
curl / cURL
curl -L -X GET '<your-unleash-url>/api/admin/user-admin/inactive' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
python / requests
curl -L -X GET '<your-unleash-url>/api/admin/user-admin/inactive' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
go / native
curl -L -X GET '<your-unleash-url>/api/admin/user-admin/inactive' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
nodejs / native
curl -L -X GET '<your-unleash-url>/api/admin/user-admin/inactive' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
ruby / Net::HTTP
curl -L -X GET '<your-unleash-url>/api/admin/user-admin/inactive' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
csharp / httpclient
curl -L -X GET '<your-unleash-url>/api/admin/user-admin/inactive' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
php / cURL
curl -L -X GET '<your-unleash-url>/api/admin/user-admin/inactive' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
java / OkHttp
curl -L -X GET '<your-unleash-url>/api/admin/user-admin/inactive' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
powershell / RestMethod
curl -L -X GET '<your-unleash-url>/api/admin/user-admin/inactive' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'