How can I automatically re-enable a user set as Inactive in Crowd?

Alan Bell December 6, 2018

The goal is automatically re-enable users who attempt to log in to the Atlassian products (JIRA, Confluence, BitBucket) that are managed in Crowd AND disable another user that has the longest time since login (and has not logged in for X days).

The current process is a daily script that disables user accounts that have not logged in for 90 days, but re-enabling users is a manual process.

We would like to keep a "rolling window" of users to save on licences, and done in an automated way. 

1. For each user that is automatically re-enabled,

2. we would like to deactivate a user that rarely logs in (i.e. 14 days since login). If the user account has logged in within 14 (or X) days, do not disable the user account

3. We would also like to track whether we need an increase in licences if the number of active users diverges from the number of users disabled

 

Has anyone solved this problem before?

1 answer

0 votes
Hitendra Chauhan December 11, 2018

You can track the recent failed logon by scanning the logs and then re-enable them via REST API using some script . But this won't be instantaneous when a disabled user tries to login. 

Alan Bell December 18, 2018

There's no way to tap into User Authentication failure event to trigger error handling?

Suggest an answer

Log in or Sign up to answer