SHARING-AND-VISIBILITY-DESIGNER practice question 1 of 30

Universal Containers is a fast-growing company that sells containers globally. It has thousands of dealerships throughout the world where local…

Full set: 212 questions
Universal Containers is a fast-growing company that sells containers globally. It has thousands of dealerships throughout the world where local dealers service Containers sold locally. They recently opened two dealerships in California: NorthCal and SoCal. Universal Containers implemented a new partner community to enable their dealers. Each dealership has a dealer Manager who has all service agents report into them. Assuming a private sharing model, what is the best option to enable dealer managers to have visibility to customer cases within their dealership and not across all dealerships?
Answer options
A: Create sharing groups that share all cases to all agents under the Dealer manager.
B: Create a batch job that creates sharing rules as needed, based on the cases created.
C: Build a trigger that create manual sharing of cases as needed whenever a new case is created.​
D: No changes are needed to the sharing and visibility model to implement this requirement. Correct answer
Correct Answer:
D. No changes are needed to the sharing and visibility model to implement this requirement.
Explanation

Partner Community users are assigned to roles automatically when they are created. By default, a three-level role hierarchy (User, Manager, Executive) is created for each partner account. The scenario states that service agents report to the Dealer Manager, which means the Manager's role is superior to the agents' roles within that dealership's account hierarchy. Salesforce's role hierarchy sharing automatically grants users in a higher role visibility into the records owned by users in subordinate roles. Therefore, the Dealer Manager will inherently be able to see all cases owned by the service agents within their specific dealership without any additional configuration.

Why Incorrect

A. Sharing groups are used to share records with partner users who do not have roles or are in different branches of the role hierarchy, which is not the case here.
B. A batch job is an asynchronous, programmatic solution for a requirement that is handled declaratively and in real-time by the standard role hierarchy, making it unnecessarily complex.
C. A trigger creating manual shares is also an overly complex and less performant solution compared to the standard role hierarchy functionality, which is designed for this exact use case.

References

1. Salesforce Help, Partner Role Hierarchy. "Each partner account has a role hierarchy with three roles: Partner User, Partner Manager, and Partner Executive... Users with the Partner Manager role can view and edit all data created by the Partner Users and Partner Managers in their account."

2. Salesforce Security Guide, Page 13, Section: "Role Hierarchy". "Users at any given role level can view, edit, and report on all data owned by or shared with users below them in the role hierarchy, unless your organization’s sharing model for an object specifies otherwise."

Scroll to Top