Overview
You, as a Jira admin, may face with an the issue that it is not possible to delete remove all the user related data if the user were was deleted, and in some cases, if user users were disabled.
To solve this problem you can use the “Data Cleaner” module from the “GDPR and Security app” for Jira.
...
It is possible to anonymize any text field and replace information about disabled/deleted users using custom templates. It will work only for text fields. For itthis, administrators should create a custom template and then create a number of rules to replace the user names, display names, and e-mail addressaddresses.
1. Click on the “Create custom template” button.
...
2. Fill in all necessary fields, like Template name, Scope and Fields.
3. Go to the “Data Processing Rules” tab and using use “Create new rule” dialog to create 3 rules.
...
Do the same for Display display names and Ee-mail addressaddresses.
After creating the creation of all rules, an administrator it should have something look similar to this:
...
(all “Search type” fields should have “Plain text” type)
...
The first workaround will help you to search/anonymize disabled/deleted users only for text fields, but if you need to find user users in the user fields (like assignee, reporter, etc.) you should have to do one more step. Unfortunately because of the limitations of the Jira REST API, you could can not use the same “Data Processing rule” dialog to create a special rule for users, just because you . You can’t choose user users in the user picker, but it is possible to use our API to create a rule due to a special Rest Call. Please execute the next JavaScript in the browser console with the correct parameters.
...