How can get a report of old/unused user accounts

How can get a report of old/unused user accounts

2 answers

There is no way to generate a report in OnDemand that will show you this information, however you can access the last time (and how many times) the user has logged in from the users page under administration...you can then begin disabling the old accounts right there.

0 vote
David Chan Atlassian Team Aug 13, 2012

Similar to what Nik mentioned, it may be easier to go through the database

Something like this would give you a list of usernames and their user login attributes:

select u.user_name,a.* from cwd_user_attributes a join cwd_user u on a.user_id=u.id where a.attribute_name = 'lastAuthenticated';

You should also notice that there's an attribute for last login time (in milliseconds). The value is stored in Unix Time, so you'll need to translate it to human readable.

edit: it should be noted that this would of course just be for standalone and EAR/WAR instances of JIRA

Lets say I wanted to run a report or a query to see all users that had logged in, in the last 45 days, how would I go about it?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

68 views 0 11
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