Restrict users from changing the ownership of a record on professional edition or below
If you want to restrict users from changing the ownership of a record, you can define a validation rule for the object.
Salesforce Classic
1. Click on Setup.
2. Select the object you wanted to create the Validation Rule.
For Standard objects: Expand “Customize”, under it expand the object you wanted to create the validation rule by clicking the arrow before its name and click on “Validation Rules”.
For Custom objects: Expand “Create”, under it click “Objects” and click the object you wanted to create the validation rule. Scroll down to the “Validation Rule” section.
3. Click New.
4. Define the Rule Name.
5. Select Active.
6. Under the “Error Condition Formula” section, enter:
$User.Id <> "00520000001GfwQ" && ISCHANGED( OwnerId )
7. Fill up the Error Message.
8. Select the location you prefer to see the Error Message.
9. Click Save.
Lightning Experience
1. Click the Gear Icon on the upper right corner.
2. Click Setup.
3. Click Object Manager.
4. Search for the object.
5. Click the object name.
6. On your left, click on Validation Rules.
7. Click the “New” button on the upper right.
8. Define the Rule Name.
9. Select Active.
10. Under the “Error Condition Formula” section, enter:
$User.Id <> "00520000001GfwQ" && ISCHANGED( OwnerId )
11. Fill up the Error Message.
12. Select the location you prefer to see the Error Message.
13. Click Save.
The ID stands for the user who is able to change the ownership. Refer to our Locate a Salesforce User ID article to find the User ID.
000385395

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 are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security 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 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.