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

0 votes

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 Sign up to answer
Community showcase
Posted Sep 18, 2018 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...

20,889 views 2 7
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