Record access controls which individual records a user can see and edit, separately from which objects and fields the user can use. A user may have permission to read Opportunities and still see only some of them. Record access in Salesforce comes from several layers working together, so when a user sees a record they should not, or cannot see one they need, the cause can sit in any of those layers.
How Record Access Is Granted
- Organization-wide defaults set the baseline for each object: private, public read only, or public read/write.
- Ownership gives the record owner access to the record.
- The role hierarchy opens records upward, so managers can access records owned by people below them when the object allows access through hierarchies.
- Sharing rules open records to groups, roles, or territories based on ownership or on criteria.
- Manual sharing, teams, and territories grant access to specific records or groups of records.
- Administrative permissions such as View All Data and Modify All Data, and object-level View All and Modify All, bypass sharing.
How to Investigate Access
- Start from the record. Pick the records in question and list every user and group with access.
- Find the reason for each grant. Ownership, hierarchy, a sharing rule, manual sharing, or an administrative permission each call for a different fix.
- Resolve groups to people. A sharing rule to a role or public group can reach many users. Expand the groups to see who is actually included.
- Change the narrowest layer that fixes the problem. Adjusting one sharing rule is safer than changing an organization-wide default.
- Plan for recalculation. Changes to defaults, the role hierarchy, or sharing rules can trigger sharing recalculation, which takes time in orgs with many records.
How Snapshot Helps
- Record Level Security Report: select standard or custom objects and records, then see Record Name, Record ID, Shared To, Share Reason, and With Access for each grant, including Full, Edit, and View access from ownership, manual sharing, sharing rules, and administrative permissions. Selecting a row calculates the individual users behind role and group sharing, and Show Admins and Show Owners include administrative access and record owners.
- Relationship Hierarchies Report: displays and edits the user role hierarchy, with role members and role access settings.
The results establish calculated visibility for the selected records, not whether a user opened a record or whether the access meets business policy.
Metadata Types Involved
-
SharingRules: criteria-based, ownership-based, territory-based, and guest-user sharing rules for each object. -
Role: positions in the role hierarchy. -
Group: public groups that sharing rules grant access to. -
Queue: queues that own records and give members access.
Common Questions
Why can a user see a record they do not own?
Through the role hierarchy, a sharing rule, manual sharing, a team or territory, membership in the owning queue, or an administrative permission. Check the share reason for that record.
Do profile permissions control which records a user sees?
Profiles and permission sets control access to objects and fields. Which individual records are visible depends on sharing, except for permissions such as View All Data that bypass sharing.
Why did a sharing change take a long time to apply?
Changes to sharing settings can start a recalculation across every affected record, which can run for some time in large orgs.