get user last login details

Certified Senior Developer

Hello Everyone,

Is there any approach to retrieve a user's last login details without accessing log files? For example, is there a function or method we could use to capture login information when a user accesses a specific link or application?

Thanks & Regards,

Srikanth.

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to srikanth

    Create a User Login Record Type with fields (username, loginTimestamp, appName, site etc...) backed by a database table, and create a lightweight process model that writes login data to this record using loggedInUser() and now() functions.
    Embed the login capture in the first user interaction (button click, tab selection, or form submission) using a!startProcess() in the saveInto parameter, then leverage the Record data to display data as you want.
    I would recommend check this plugin also User Activity Tracking

Children
No Data