Loading

Restrict Users' ability to change ownership

Date de publication: Oct 13, 2022
Description


Restrict users from changing the ownership of a record on professional edition or below

Résolution


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.

Numéro d’article de la base de connaissances

000385395

 
Chargement
Salesforce Help | Article