How to get all the users last login date in Agile 9.3.6

How to get all the users last login date in Agile 9.3.6

Agile User Asked on August 23, 2021 in Product Collaboration.
Add Comment
2 Answer(s)

Hello

Please check user_usage_history table. It has the login_time and logout_time

This might help

– Raj

Agile Angel Answered on August 23, 2021.
Add Comment

The following may help.

SELECT
  A.LOGINID,
  A.EMAIL,
  A.LAST_NAME,
  A.FIRST_NAME,
  A.ENABLED,
  A.DATE_CREATED,
  MAX(B.LOGIN_TIME)
FROM
  AGILE.AGILEUSER A
  LEFT JOIN AGILE.USER_USAGE_HISTORY B ON (A.LOGINID = B.USERNAME)
WHERE
  A.ENABLED = 1
GROUP BY
  A.LOGINID, A.EMAIL, A.LAST_NAME, A.FIRST_NAME, A.ENABLED, A.DATE_CREATED

Regards,
Drew

Agile User Answered on August 25, 2021.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.