last user login database

Hello,
I am currently working on a script to deactivate users which havent logged in for a period of time. This should be based on the last login time of time. According to the jira documentation a sql query for lastauthenticated should do it:
https://confluence.atlassian.com/display/JIRAKB/Retrieve+last+login+dates+for+users+from+the+database

But ( if i didnt get anything wrong) some users dont have lastauthenticated but login.lastLoginMillis. Whats the difference between those values?

ps: jira version 6.0.3

best

Roman

1 answer

Hi Roman,

I believe that "login.lastLoginMillis" indicates the last login in milliseconds. I think they both indicate the same value, but for older JIRA version, it was used the "login.lastLoginMillis" whilst in the new JIRA versions the used one is lastauthenticated. If the user haven't authenticated in the new JIRA versions, probably they won't have the data inside the new column. that's my assumption, so I'll leave this question open as another person can confirm my thoughts.

Cheers,

Rodrigo

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,323 views 14 20
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