Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Queries in documentation are not accurate

Daniel
Contributor
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-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 11, 2017

Where are you storing your users?

Daniel
Contributor
January 11, 2017

We are using the Active Directory connector.

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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
Contributor
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
Contributor
January 11, 2017

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

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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
TAGS
AUG Leaders

Atlassian Community Events