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
kjunkjun 

Allow multiple profiles to update lead owner name

I have created this Validation Rule in leads that allows the System Administrator to change the Lead Owner. 

 

I want to also add the Sales Manager profile to this but my attempts either deactivate this Validation or won't allow any user to update the lead owner. 

 

AND(
NOT(ISNEW()),
ISCHANGED(OwnerId),
$Profile.Name <> "System Administrator"
)
ANUTEJANUTEJ (Salesforce Developers) 
Hi KJun,

>> https://help.salesforce.com/articleView?id=000329919&type=1&mode=1

As mentioned in the above link and as you have written can you try changing it to something like below once and try:
 
AND (NOT(ISNEW()),ISCHANGED (OwnerId), OR($ User.ProfileId = '00eE0000000vGNQ' , User.ProfileId = 'Sales Manager Profile Id'))

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.  

Thanks.