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
AbAb 

Validation rule for specific profiles

Hello,

I have a validation rule.

I want it only for certain profiles, 

How can i do it ?
Best Answer chosen by Ab
Vinoth Vijaya BaskerVinoth Vijaya Basker
Hi Sandrine, 

Please find the below example which throws an error if current user's profile is System Administrator, 

AND(ISCHANGED(StageName), TEXT(StageName) = 'Needs Analysis', $Profile.Name = 'System Administrator')


Thanks,
Vinoth