Deprovision dormant user accounts in enterprise systems
Recipe ToolsMarketingERPSales Enablement
What it does
When a scheduled check runs every 5 minutes, this automation queries the enterprise system to find inactive user accounts. It locks those dormant users and maintains a lookup table record of each one for audit purposes.
Who it's for
IT teams who need to automatically disable inactive user accounts to meet security compliance requirements.
How teams use this
Lock inactive accounts on schedule
Run the dormancy check every 5 minutes so inactive user accounts are locked automatically without manual intervention. The lookup table keeps a complete record of all lockdowns for security audits.
Adjust the dormancy threshold
Change the inactivity period in the query so accounts are only locked after 90 days instead of 30. The rest of the automation stays the same and the audit trail continues.
Add email notification to locked users
Include a step that sends an email to each locked user so they know their account was disabled. Set the email to reference the lookup table entry with the lock date and reason.
Filter by department before locking
Add a condition to the automation so only dormant users in specific departments are locked. Check the user record for department code and only proceed if it matches the filter list.
How it works
- Check every 5 minutes. A scheduled trigger runs every 5 minutes to start the dormant user detection process.
- Query for inactive accounts. Run a query in the enterprise system to identify all user accounts that have been inactive and meet the dormancy criteria.
- Log each dormant user. For each inactive account found, add an entry to the lookup table so there is an audit trail of all locked users.
- Lock the dormant accounts. For each dormant user in the results, lock the account in the enterprise system to prevent further access.