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

This widget could not be displayed.

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
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

118 views 1 2
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