Set up a schedule to automatically clean up users after 14 days of inactivity

Set up a schedule to automatically clean up users after 14 days of inactivity

On this page

Add Schedule

To set up an automatic schedule, go to Scheduling and cleanup → Add schedule.

add schedule.png

Specify Scheduling display name

Enter a display name for the schedule. This will help you distinguish between schedules.

Specify Selection criterias

Configure the requirement of user activity in the cleanup, as the number of days since last time they logged in (see below). For example enter 14 in the Inactive Threshold to cleanup users who have not logged in the last 14 days.

Insert groups into Part of the following groups if you want to cleanup inactive users who are part of specific groups.

While cleaning up users, you also want to make sure that certain users are not cleaned, even if they haven't logged in for a while. You might not want to clean Admin accounts for example, because then you might lose system access. Exceptions can be configured based on group memberships or user directories.

Specify cleanup actions

Decide whether you want to Deactivate users or Remove access to groups. Select a licensing group to remove Atlassian product access. Typically the group jira-software-users grants access to Jira software licenses.

Choose action Add to list for review if you want to manually perform cleanup action for bulk of users.

Note

For automated cleanup scheduling to work optimally it is important to use pure licensing groups to avoid defining groups that assign its users to more than one product.

Actions.png

Configure Time

Specify when the cleanup schedule should run.

Save the Cleanup schedule when you are satisfied with the configuration. The job will start at the time shown in the Next cleanup field.

Note that the schedule must be Active to run.

Skjermbilde 2024-08-17 kl. 17.50.53.png

Test the cleanup schedule

You can test the cleanup schedule by clicking the Dry run button.

Run a cleanup manually

You can force user cleanup to run immediately by clicking the Run Now button.