Hi community,
I'm trying to find a way to extract users who's been deactivated for over 5 years.
We need to find users despite them never being logged in, so ideally the query should be based on the last updated date, since the deactivation should count as the last update on the accounts (if I'm not mistaken).
I'm seeing posts with query options for last login date, but is it possible to query deactivated users for last updated date?
To put this into context, we need to anonymize these users in bulk to begin with, and then create a scheduled script that runs weekly and anonymizes any users that's been deactivated for more than 5 years as a GDPR requirement.
We're on a PostgreSQL DB, and on Jira DC version 8.20.12.
Ideally we'd like to do this without 3rd party add-ons.
Thanks in advance!