last user login database

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:

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



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.



Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,050 views 4 9
Read article

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