Skip to main content

I have a situation where a client has 4 brands on the same platform.  They share Account and Contact records across brands but don't want other brands to be able to see their task and event records.  The restriction rules work great for users that support only 1 brand, but some users support 2 brands.  These users are only able to see tasks and events for one of the two brands they support. 

 

I have 4 brand checkboxes on the User record that identify which brands the user supports.  Then I have 4 record types on task that correspond to the brand. I want users with any combination of brand checkboxes on their User record to see the corresponding tasks.  

 

Is this the expected functionality or do I need to create a Case?

3 answers
  1. May 24, 2022, 4:20 PM

    Hi Clayton,

     

    Ultimately it depends on how easy it is to categorize your users in relation to the records. 

     

    For example, one rule is 

    [Object].brand__c = $User.brand__c 

    This is a single rule, with no need to hard-coded values (in the rule).

    However, you will then need to manage the field values on the object and on the user.

     

    I'm guessing you're a UE customer (5 active rules). Ensure your users don't have more than 1 rule applied to them per object. If you have special cases, hopefully those can also be solved either with flow or apex (to set proper values on the record) since we don't support formulas.

     

    @Dan Sheehan (He/Him) - https://help.salesforce.com/s/articleView?id=sf.security_restriction_rule_examples.htm&type=5 (I'm wondering whether our examples need any tweaking as there has been a few posts in this group regarding "how do I ..." where it is not always intuitive that we now are trying to have comparison of values on the current user and the data in the record... 

     

    Clayton - can you share some insights on whether you read any of our documentation or the welcome page that shows up in the admin UI? Or any other resources you looked at? I'm just often curious how folks learn about and attempt to solve problems with the various tools salesforce provides. Something I'd like to eventually get to is how to "simplify" the various record access tools and ways we can better help folks quickly understand and secure their record access.

0/9000