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

Universal Containers (UC) has implemented Customer Community with customer community plus license for its distributors. Retail distributors have part-time agents who work for multiple distributors. Those agents should have access to other distributor accounts as well. What can be configured to grant agents access to different distributor accounts?

Full set: 212 questions
Answer options
A: Use Apex sharing to share distributor accounts with agents using the Account__ Share table. Correct answer
B: Use share group to share distributor accounts with agents who have account contact relationship.
C: Create sharing rules to share distributor accounts with agents.
D: Create sharing set to share distributor accounts with agents using account contact relationship.
Correct Answer:
A. Use Apex sharing to share distributor accounts with agents using the Account__ Share table.
Explanation

The scenario describes a many-to-many relationship where an agent (User/Contact) needs access to multiple, specific distributor accounts. Standard declarative sharing tools like sharing rules or sharing sets are not designed for this granular, relationship-based access model for Customer Community Plus users. A sharing rule would be too broad, and sharing sets are for high-volume users. Therefore, Apex sharing is the appropriate solution to programmatically create AccountShare records, granting specific agents access to specific distributor accounts based on custom logic or a relationship object.

Why Incorrect

B. Share groups are used to share records owned by high-volume community users with other users. They do not grant access to records for Community Plus users in this manner.
C. Sharing rules grant access based on record ownership or criteria. They cannot enforce the specific "agent-to-distributor" relationship required, which would lead to over-sharing records.
D. Sharing sets are specifically for granting access to high-volume community users (Customer Community license), not users with the role-based Customer Community Plus license.

References

1. Salesforce Developer Documentation, Apex Developer Guide, Section: "Using Apex Managed Sharing". "Apex managed sharing provides developers with the ability to support their application’s particular sharing requirements programmatically... Use Apex managed sharing to... implement a custom sharing solution."

2. Salesforce Help, What is a Sharing Set?. "A sharing set grants high-volume community users access to records that are associated with their accounts or contacts." (This confirms it's not for Community Plus).

3. Salesforce Help, What is a Share Group?. "A share group is used to share records owned by high-volume community users with internal and external users." (This confirms it's for sharing from high-volume users).

4. Salesforce Documentation, A Guide to Sharing Architecture, Page 33. "Use programmatic sharing when sharing is based on a custom object or a complex set of rules that can’t be implemented with declarative sharing."

Scroll to Top