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
Shashikant SharmaShashikant Sharma 

History Tracking on User Object

 I need to fetch history of user record in Apex Class. Is there any way to enable history tracking on User Obejct. I do not see "Set History Tracking" button above User Fields like we see in Account object.

Imran MohammedImran Mohammed

To my knowledge, We cannot track history of any field on user object.

 

Ankit AroraAnkit Arora

Indeed !! But working on workaround for this, I don't think I can make it.

 

 

Thanks
Ankit Arora

 

Imran MohammedImran Mohammed

The only thing i can think of is to create a custom object to track the details a User performs.

But each and everything cannot be captured.

_Prasu__Prasu_

Ya, Creating a custom object should only be the option.

Ankit AroraAnkit Arora

No other workaround I guess so..

 

 

Thanks
Ankit Arora

 

etoeto

I just wrote a blog post on that topic. Maybe that helps:

 

http://www.forcegenie.com/2012/12/02/tracking-field-changes-on-user-object/

Anil KamisettyAnil Kamisetty
There is an app on the App Exchange to Track the Audit Changes (including User Object). It is called Flexible Record Auditing and the link is given below. Link (http://https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000EvWmjUAF) is given here

It allows you to track auditing on multiple fronts (by user, by role, by profile etc). Also it has the flexibility to create a snapshot as of a date in the past coupled with data archiving features. Auditing can be done on all standard objects and custom objects. Extending the auditing to a custom object is "just add two lines of code" and it is done. User object can be audited too