Skip to main content

SF-0073 · Concept · Medium

What is sharing rule?

✓ Verified by Vikas Singhal · Last reviewed 5/17/2026

A sharing rule is an automated mechanism in Salesforce that grants record-level access to specified groups of users beyond the Organization-Wide Default (OWD) baseline. Sharing rules can only open access — they never restrict — and they’re the standard way to give one team visibility into another team’s records when the OWD is Private or Public Read Only.

The two types of sharing rules

TypeTriggerUse case
Owner-based sharing ruleRecords owned by users in a specific group, role, or territory are shared with another group, role, or territory.”Share all opportunities owned by EMEA Sales with the EMEA Support team.”
Criteria-based sharing ruleRecords matching specific field criteria are shared regardless of owner.”Share all High Priority cases with the Tier 2 Escalation group.”

Both types result in the same outcome — a row in the appropriate *__Share table — and both can grant either Read Only or Read/Write access.

Who can be the recipient

The “shared with” target of a sharing rule can be:

  • Public Groups (the most flexible — can include users, roles, roles+subordinates, other public groups)
  • Roles
  • Roles and Subordinates (a role plus everyone below in the hierarchy)
  • Roles, Internal Subordinates (excludes external community users)
  • Territories (when Enterprise Territory Management is enabled)
  • Portal/Community roles (for external sharing)

You cannot share directly to a list of individual users via a sharing rule — for one-off shares to a specific user, use manual sharing instead.

When sharing rules are even necessary

Sharing rules are pointless if the OWD is already Public Read/Write — everyone can already see and edit. They’re only meaningful when:

  • OWD is Private — sharing rules grant Read or Read/Write.
  • OWD is Public Read Only — sharing rules can upgrade specific recipients to Read/Write.

If you’re seeing a sharing rule on an object with Public Read/Write OWD, it’s leftover from a prior configuration and you can safely remove it.

Real scenario

“OWD for Opportunity is Private. Reps see only their own. The CFO team needs read-only visibility into every opportunity over $1M. How do you set this up?”

The clean answer is a criteria-based sharing rule:

  1. Create a public group named “CFO Office” containing the CFO and their direct team.
  2. Setup → Sharing Settings → Opportunity Sharing Rules → New.
  3. Rule type: Based on criteria.
  4. Criteria: Amount >= 1000000.
  5. Share with: public group “CFO Office”.
  6. Access level: Read Only.

Every opportunity that meets the criteria — current and future — is automatically shared. If an opportunity drops below $1M, the rule revokes the share on the next recalculation.

Limits to know for interviews

These are the kind of specifics interviewers ask about to gauge depth:

  • Per-object limits: 300 sharing rules per object, of which 50 can be criteria-based (older limits were lower; the current published cap is 300/50 per object).
  • Up to 500 sharing rules per object can be granted via support exception in some cases — but standard org limits are 300/50.
  • Sharing rule changes trigger sharing recalculation in the background, which can take significant time on large orgs.
  • Criteria-based rules can use up to 10 criteria conditions combined with AND/OR.

These numbers do shift between releases, so the safe interview answer is: “There are per-object caps — 300 total and 50 criteria-based — and changes trigger recalculation, which on large orgs runs asynchronously.”

Sharing rule vs the other sharing mechanisms

MechanismScopeReversibleTriggered by
OWDObject-wide baselineYes (change setting)Org configuration
Role hierarchyRecords owned by direct/indirect reportsYes (re-parent user)Hierarchy structure
Sharing ruleGroups of records to groups of usersYes (delete rule)Owner change or criteria match
Manual sharingOne record to one user/groupYes (remove share)Owner clicks “Share” on a record
Apex sharingCustom programmatic sharesYes (delete via Apex)Trigger or batch logic
Team sharingAccount, Opportunity, Case teamsYes (remove team member)Team membership

Verified against: Salesforce Help — Sharing Rules and the Sharing & Visibility Architect resources. Last reviewed 2026-05-17.