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 vote

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 Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

244 views 1 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