Create user account for an interim period - how to?

Hi All,

we administer a 5000+ users Jira and we have a problem that many of our customer users leave the projects unless they inform us about the leaving. It's a current risk.

So we decided that we will create user accounts only for 2 months and then we revision whether the user is still working in the project or not.

So my question: is it possible to set for a user account an interim period or service which inactivate the user after the period has left. My guess is the user account properties but no clue how to achieve.

Can you please help?

Thanks in advance!


2 answers

0 votes
Timothy Chin Community Champion Jun 09, 2013

There is no functionality like this at the momement. The closest that you may get is the cwd_user_attributes table in the database which holds the login.previousLoginMillis value.

Yup, you'll need to script or code for this. An account in Jira stays where it is until explicitly removed, and there's nothing about expiring accounts in there.

My last client had us write a simple service - it ran every day, and exactly as Timothy suggests, looked at last login date/time and disabled the user (removed all roles and groups, updated name and email address) if they were over X days old

I'd figure out some business rule that identifies what it means for a user to be inactive, then script up a cron job that queries the db to get this info, then use something like the API or Bob's CLI to deactivate.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,124 views 4 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you