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
GCKGCK 

Track user login time details

We have a requirement to track/report the number of hours(time) users are logged in or using salesforce.
Any suggestions/pointers would be helpful.
Arun Kumar 1141Arun Kumar 1141

Hi GCK,

You will be able to utilize the built-in tools and features of Salesforce to track and report the number of hours users are signed in or utilizing it. The step you can take is given below:

 Enable User Login History Tracking:

  1.  Go to Setup in Salesforce.
  2. In the Quick Find box, type "User Login History" and select the "User Login History" option.
  3. Click on the "Enable" button to enable user login history tracking.
  4. Make sure to adjust the retention period based on your reporting needs.

The number of hours users is signed in or using Salesforce can be tracked and reported by the above procedure. You will get the information you need to analyze and monitor user behavior over time from the scheduled report.

 

If it helps, mark it as the best answer.

 

Thanks

Arun

 

GCKGCK
Hi Arun,

Thank you for quick response.
Login History Tracking will just track user login details, but not the logout details.
Let me know if am missing anything here.
 
Thanks
Arun Kumar 1141Arun Kumar 1141

Hi GCK,

 

Yes, the User Login details will provide you Login details of the user, If you want to have user logout details too then you have to Create a custom report for this.

 

By following these steps you can achieve this -

 

First, create a Custom Report Type:

  1. Go to Setup in Salesforce.
  2. In the Quick Find box, type "Report Types" and select the "Report Types" option.
  3. Click on the "New Custom Report Type" button.
  4. Select the primary object as "User Login History" and choose related objects as per your reporting requirements.
  5. Define the report type and save it.


Now Create a Custom Report:
  1. Go to the Reports tab in Salesforce.
  2. Select the custom report type you created in the previous step.
  3. Customize the report columns, filters, and grouping as needed.
  4. Include the necessary fields such as User, Login Time, Logout Time, etc.
 

 

For more information, you can visit - Reports (https://help.salesforce.com/s/articleView?id=000387526&type=1)

 

 

If it helps,mark it as the best answer

 

Thanks

Arun





 

Naveen VorugantiNaveen Voruganti

Hi Arun, 

I also want to get the login and logout time of the users for my Org. when I typed "User Login History" in the quick find box in Setup, I am not getting any results. Am I doing something wrong? Please advice. 

Thanks & Regards,

Naveen