Find Inactive Users
find_inactive_usersIdentify Active Directory users whose last logon exceeds a specified number of days, optionally including never-logged-on accounts, and scope results to an OU or domain.
Instructions
Find users whose last logon is older than days (default 90).
Matches lastLogonTimestamp at or before the cutoff. Set
include_never=True to also return users that never logged on. Pass
base (a DN) to scope to an OU.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | ||
| days | No | ||
| limit | No | ||
| domain | No | ||
| include_never | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |