Using SQL, I want to retrieve the last logged in time of a set of users. I think last login time is recorded in CWD_USER_ATTRIBUTES table.
When querying this table I found two two attribute names for each user, that looks like last login time; that are 'lastAuthenticated' and 'login.lastLoginMillis'.
SELECT DISTINCT ATTRIBUTE_NAME FROM CWD_USER_ATTRIBUTES ORDER BY 1;
com.atlassian.jira.dvcs.invite.groups
invalidPasswordAttempts
lastAuthenticated
login.count
login.currentFailedCount
login.lastFailedLoginMillis
login.lastLoginMillis
login.previousLoginMillis
login.totalFailedCount
password.reset.request.expiry
password.reset.request.token
passwordLastChanged
requiresPasswordChange
In JIRA, is there a difference between the terms 'Login' and 'Authentication'? For all users, these two attribute values were different.
Which attribute should I take as correct login timestamp of the user?