Forum Discussion

Denizbaby's avatar
6 years ago

user login details

Hi all,

How we can get all the login date/time for a particular user using API calls. 

Is there any way to fetch the details in a Custom component.

Thank you in advance for your time and assistance! 

Thanks,

   DVB

  • Hi Denizbaby,

    You can get the user last login time using Api

    /users/id/1/last_visit_time
    <#assign date_visit = rest("/users/id/1/last_visit_time").value?datetime("yyyy-MM-dd") />

     

    • Denizbaby's avatar
      Denizbaby
      Guide

      Hi Parshanth,

        Thanks for the response.  Can we get all the user login history(not only the last login) using API.

      Thanks,

         DVB

      • manasab's avatar
        manasab
        Ace

        Hello Denizbaby ,
        Based on my understanding, there is currently no API available for accessing an individual user's complete login history. However, we can retrieve information about the user's last visit and registration details.
        reference link: users (khoros.com)