Data Cleaner for Confluence: How to create a custom template for anonymizing any user with an automatic Cron startup
You want to anonymize users in Confluence on a regular basis? Then Data Cleaner for Confluence is exactly the right tool. The App provides functionality allowing you to anonymize users automatically with some periodicity. Let's look at the steps of creating the sample task, providing regular anonymization of all users and user mentions in the content of the SAN space every first day of the month at 12 a.m.
Step 1: Open the Confluence administration section using the settings button at the right top corner and choose any item in the dropdown menu. After that, you will see the sidebar – find the Data Cleaner module and click on it. Now, you’ll see the Data Cleaner Dashboard page.
Step 2: Click on the Create custom template button, and you will see a form that you need to fill in. There are five sections:
General configuration,
Data Processing Rules,
Post Functions,
Total Results Post Functions,
Scheduling.
Step 3: Fill in the fields of the General configuration tab with the following parameters:
Parameter | Value |
---|---|
Template name | Anonymize all users from content |
Scope (CQL) | space = SAN |
Objects | Title, Content body, Comment, Content creator/updater, Comment author, Attachment author |
Step 4: Add a rule on the Data Processing Rules tab by using the Create new rule button. Create a rule with the following parameters:
Parameter | Value |
---|---|
Rule name | Anonymize Any User |
Search type | Any User |
How to replace | User |
Replaces with | anonymized_user |
Step 5: Add a post function on the Post functions tab using the Add Post Function button. Create a Post Function with the following parameters:
Parameter | Value |
---|---|
Post function name | Add comment about anonymization |
Work with rules | Disabled |
Applied for any Rule | Enabled |
Post function type | Add comment to the Ticket |
Comment | Message about anonymization |
Step 6: Set the automatic starting of the task on the Scheduling tab. Fill in the fields of the tab with the following parameters:
Parameter | Value |
---|---|
Enabled | Activate the checkbox |
Cron expression | 0 0 12 1 * ? |
Task execution type | Anonymization |
Click the Save button after edited everything. Now, your template is created, and it runs anonymization of users by CRON once a month.
With this tutorial, you can easily create your own templates. If you have any questions about this, we look forward to hearing from you.
We will be happy to advise you.