function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SNSNSNSN 

Tracking Login History of the users

Hi,

 

I am trying to create a report to track the login history of the Users. I have the following questions.

 

1) When I see in the backend I have the SObject "LoginHistory" to retrieve the user last login records, but while creating reporttype  I have the option to select Sobject "Logging Analytics" but not the "LoginHistory" Object. Are both objects are same?

 

2)If I create the report type with the sObject " Logginganalytics",  I am not getting the correct user login information in the report but when I write anonymous script for the Object  "LoginHistory" and execute I am getting the correct information

 

Any suggestions from anyone on how to create the report type and on which Sobject to track the History of User login?

joshbirkjoshbirk

What's the information you're trying to extract?  The User object itself isn't sufficient (has last login)?