+ Start a Discussion
Dev_AryaDev_Arya 

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?

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