Loading

Duplicate rule condition based on 'Current User: Profile' is ignored when current User does not have 'View Setup and Configuration'

Udgivelsesdato: Oct 13, 2022
Beskrivelse
Duplicate rule may trigger due to conditions based on "Current User: Profile" being ignored during evaluation when the running user does not have the "View Setup and Configuration" permission.
 
Løsning
This is working as designed. The Current User: Profile field is a foreign key referencing Profile. Users without "View Setup and Configuration" are unable to view Profiles, so they cannot access the field this filter references, and the filter is ignored.

An example scenario:
  • A Duplicate Rule has been set up with a single condition "Current User: Profile equals System Administrator".
  • When duplicate rules are evaluated by a user who is not a System Administrator, and who has "View Setup and Configuration", this condition will evaluate false and the duplicate rule will not run.
  • However, if the user does not have "View Setup and Configuration",  "Current User: Profile" is not accessible. The filter is not evaluated at all, and the duplicate rule is triggered regardless of the users actual Profile.

Formulas can be used to allow Users access to data they otherwise could not see:
  1. Create a Formula Field called "ProfileName", return type (text) on User.
  2. Use the syntax: Profile.Name
  3. Then reference the formula field (Current User: ProfileName), instead of "Current User: Profile" in the duplicate rule criteria.

Note: this formula field may be hidden from Users through page layout and/or field level security.

 
Vidensartikelnummer

000387549

 
Indlæser
Salesforce Help | Article