Lesson 13 of 18 · 5–7 minutes
Opening Access: Role Hierarchy, Sharing Rules, Public Groups & Apex Sharing
After setting OWD, close the gap between the baseline and the access matrix without broadening access for everyone.
Learning sequence · data model first, security layers next
- What CRM and Salesforce Do
- The Salesforce Ecosystem and Major Clouds
- Org, App, Object, Field, and Record
- Standard and Custom Objects
- Common Standard Objects
- Field Types and Data Quality
- Objects, Fields & Records
- Lookup vs Master-Detail
- Many-to-Many Relationships and Junction Objects
- Profiles, Permission Sets & Object Access
- Field-Level Security
- OWD and Least-Privilege Record Access
- Opening Access: Role Hierarchy, Sharing Rules, Public Groups & Apex Sharing
- Apex First Steps
- Variables and Collections
Your focus
Start Your Salesforce Career
FULL · Learn • Apply
- Match manager, regional peer and exception requirements to mechanisms.
Prepare for Your Next Developer Role
REVIEW · Review • Apply • Practice
- Design a Read Only regional rule and troubleshoot an excluded group member.
Prepare for Senior / Lead Roles
CHECKPOINT · Checkpoint • Design • Troubleshoot
- Review share lifecycle, recalculation cost and custom-vs-standard ownership behavior.
Learning objective
Select the smallest record-sharing mechanism that fits a business exception.
Before you start
OWD baseline, least privilege, object access and FLS.
Real-world scenario
Accounts are Private. East-region colleagues need Read Only; regional managers need team visibility. A criteria-based rule for Region = East can share to an East public group. Use hierarchy for management access. A changing specialist assignment on a custom onboarding object may justify programmatic sharing if rules or supported teams cannot represent it.
The concept
Role hierarchy supports upward record visibility for managers; peers do not automatically share with each other. Standard objects use hierarchy access; custom objects can disable Grant Access Using Hierarchies. A role is not an object permission. Sharing rules add repeatable owner-based or criteria-based grants to eligible recipients. Public groups organize recipients; membership alone is not an object permission or a record grant. Use Apex sharing for programmatic exceptions when declarative mechanisms do not fit. Plan grant creation, updates and removal. Custom-object Apex sharing reasons help track intent; manual-row-cause shares can disappear on owner transfer. Runtime CRUD/FLS and sharing enforcement in Apex are later topics.
Verify object Read and needed field visibility first. Apply each selected mechanism to the access matrix and test an outsider, a peer and a manager. Re-test group membership and owner changes. These are additive mechanisms to choose from, not mandatory sequential gates or a reason to grant Edit.
Teaching order, not a runtime pipeline: use the mechanisms your access matrix needs.
1.OWD
Restrictive baseline.
Practice next
Combine Private OWD, regional recipients and Read Only sharing in one design.
Regional Account SharingReading these lessons does not yet save completion. Challenge results continue to provide assessment evidence.