When users no longer want their personal data recognized in
Salesforce, you can permanently scramble the data with the System.UserManagement.obfuscateUser Apex method. However, when you invoke the
method for a user, the data becomes anonymous, and you can never recover it. As an extra
precaution, you can’t use the method until you enable Scramble Specific Users’
Data for your org.
Required Editions
Available in: both Salesforce Classic and Lightning Experience
Available in: Enterprise, Performance, Unlimited, and
Developer Editions
User Permissions
Needed
To enable the Scramble Specific Users’ Data setting:
Customize Application
From Setup, enter User in the Quick Find box, then select
User Management Settings.
Enable Scramble Specific Users’ Data.
Invoke the obfuscateUser method one of several
ways. For example, you can use custom Apex triggers, processes, workflows, or the
Developer Console.
Note Invoking obfuscateUser method doesn’t trigger
an email change notification.
This feature is part of our effort to protect users’ personal data and privacy. For more
information on what you can do to actively protect user data, see Data Protection and
Privacy.
For more information about obfuscateUser, see the
UserManagement Class in the Apex Reference Guide.
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.