sharing rule
sharing rule
SALESFORCE SHARING
RULES AND SECURITY
SALESFORCE SHARING RULES
AND SECURITY FLOW
Apex Sharing
Manual Sharing
Sharing Rules
Role Hierarchy
OWD settings define the baseline access level for records that users
do not own. Setting the OWD to "Private" ensures that records are not
shared unless explicitly granted.
Example:
Scenario: Two departments (Loans and Investments) need
confidentiality.
OWD Setting: Set to Private for objects like Loan__c and
Investment__c.
Result:
Loans employees see only their department’s records.
Investments employees see only their own records.
No accidental cross-department access unless explicitly
shared.
ROLE HIERARCHY
Extend access to records based on ownership or criteria (works when OWD is set to
Private or Public Read Only).
Scenario:
OWD for Opportunity is Private.
Sales Managers in the "East Region" need access to all opportunities owned by their
team.
Setup:
1. Public Group: Create a group called "East Sales Managers."
2. Sharing Rule:
Rule Type: Owner-Based.
Share Records Owned By: "East Sales Team" (role/subordinates).
Share With: "East Sales Managers" group.
Access Level: Read/Write.
Outcome:
All opportunities owned by the East Sales Team are editable by East Sales Managers
SHARING RULES