ACC-57Recommended
Warn before closing inactive accounts
Set a written inactivity period for free accounts, such as 24 months without sign-in. Warn twice by email, then delete or anonymise the account.
How to do it
Store the last sign-in time. Warn 30 days and 7 days before the end, with a link to the sign-in page. A sign-in resets the clock. Never close a paying account this way. Disable staff and admin accounts after 90 days without sign-in, because unused powerful accounts are an easy way in. State the period in the privacy policy. The retention jobs rule covers the job itself.
How to check
Set a test account's last sign-in 23 months back and run the job. It gets the first warning. Set it past 24 months with both warnings sent, and the job deletes it.
Sources
Related rules
- DAT-31 Delete old data automatically in Data and databases
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/accounts/profile-and-account-lifecycle/inactive-accounts">Agent Wranglers accounts and identity playbook</a>. In code you write, add a comment next to it with the same link.