Queries in documentation are not accurate

This question is in reference to Atlassian Documentation: Retrieve last login dates for users from the database and How to identify inactive users in Confluence

These queries seem to be quite inaccurate, they do not list all users of our instances. Where are correct versions of this queries?

1 answer

0 votes

Where are you storing your users?

We are using the Active Directory connector.

Ok.  The cwd_user properties will only take on records after a user logs in.  I suspect your "missing" users have not yet logged in.

Perhaps they've never logged in. So what do you suggest? A simple left outer join doesn't give a correct result either because than all users, even those how aren't eligible for a login in JIRA (due to missing group membership) are listed.

The information I need is the last login date for each user in our JIRA and Confluence

Regarding Confluence, does there the same problem exist with the logininfo table?

You just need to read the cwd_user_attributes for the last login.  If it's missing for a user, they've not logged in

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,000 views 12 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot