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

Marketing User check in validation rule

Hi All,
I need to create a validation rule on User object checking if user is Marketing user or not. I cannot use profile based check bcz in our org Marketing User is not constrained by profile. I found that at the API level, we can use the 'UserPermissionsMarketingUser' API name in the SOQL query to check for Marketing User permission, but this is not accessible at the validation level.
Although the solution was achieved using a before trigger, but i am curious to know if there is any way to detect the marketing user at the validation level or in the formulae?

Raj VakatiRaj Vakati
No... UserPermissionsMarketingUser not available from Validations or workflow or process builder