Queries in documentation are not accurate

Daniel January 11, 2017

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
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 11, 2017

Where are you storing your users?

Daniel January 11, 2017

We are using the Active Directory connector.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 11, 2017

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.

Daniel January 11, 2017

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

Daniel January 11, 2017

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

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 11, 2017

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