Hi community!
We're facing a situation where we have to either delete or anonymize a lot of users which are already disabled, due to the amount of users it's not an option to anonymize the users manually one by one.
Any comments, issues, etc. created by the user should remain in our instance as is the case when a user is anonymized.
My thought is that it might be an option with SQL directly in the database to retrieve the users who are disabled and haven't logged in for 5+ years (for example) and then either anonymize or delete them.
Is it possible to either delete or anonymize users through the database with a SQL query?
If anyone has ideas or experience with this, any info or pointers to documentation would be much appreciated.
(we also need this for Confluence DC, but that'll most likely work differently than a SQL script for Jira)