Hide personal data
The ability to obfuscate user data is a requirement in some jurisdictions and may be requested by specific users in others. You can enable an option to allow data obfuscation for specific users - obfuscation must then be invoked for the users. When invoked, data for those users is anonymized permanently and cannot be repersonalized.
To enable obfuscation:
-
Go to Setup > Users > User Management Settings.
-
Scroll down to find the Scramble Specific Users Data toggle.
-
Set the toggle to Enabled.
-
Exit the page - your changes are automatically applied.
When enabled, the Apex method obfuscateUser is made available and can be invoked.