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 votes
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
Community showcase
Posted Friday in Europe

Venue Needed! 23rd October

Hey Everyone! Unfortunately, the venue that was hosting us on the 23rd has pulled out so we're looking for a new venue.    If anyone would have a room free that we could use on the ev...

39 views 1 0
View post

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