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
goabhigogoabhigo 

Creating roles when there are multiple people with same role but different locations

I have an org where there are multiple branches (locations) which has similar set of users roles - Area Manager, Branch Manager, Sales Executive. As per the rule, it is best if I create roles like - AM Location1, BM Location1, SE Location1, AM Location2, BM Location2, SE Location2. This is ok if we have very limited branch, BUT not at all good design if we have more. In my case I have 3900+ branches!!!

Problem with creating one set of hierarchy (AM, BM, SE) is that, AM of Location1 can see records created by SE of Location2.

Is there a way to do this? Please suggest.
Ramu_SFDCRamu_SFDC
If you are not using standard objects, the visibility of records to top lever users from their sub-ordinate users(as per the role hierarchy) can be disabled by uncheking 'Grant Access using Hierarchy' beside the object under OWD settings. If this helps.

Once you set this up correctly the role hierarchy can be arranged in any order as per the convenience.

However, if you are using standard object, this may not suit.
goabhigogoabhigo
I am using standard objects, so this option is not suitable. Thanks Ramu :)