How can get a report of old/unused user accounts

How can get a report of old/unused user accounts

2 answers

This widget could not be displayed.

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.

This widget could not be displayed.
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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published yesterday in Marketplace Apps

The 7 hacks of highly successful automation

...there's anything I've learnt from working, it's that people are lazy! No offense to anyone reading this, but it's true and we can all admit it. The easier you make something for someone, the more...

95 views 0 8
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