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 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Meet the AUG leaders of Northern Virginia

@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....

125 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