Skip to content

Choosing Whose Records and Who Gets Them

Module 2 of 4 in the chapter Owner-Based Sharing Rules, chapter 8 of Securing Salesforce: Sharing and Visibility. Each module stands on its own.

The question this module answers: An owner-based rule has two buckets of people: whose records it picks up, and who receives them. How do you choose each one so the rule reaches exactly who you mean?

Every owner-based rule has a source bucket and a target bucket. The source is “owned by members of.” The target is “Share with.” Both are picked from the same short list of categories, and the choice is final once you save (module 1). So this is the decision to get right.

To get it right, you need to know your role hierarchy.

When you define a sharing rule, “you can choose from the following categories in the owned by members of and Share with dropdown lists. Depending on the type of sharing rule and the features enabled for your organization, some categories may not appear” (Sharing Rule Categories (opens in a new tab), Salesforce Help, checked 2026-11-07). For your internal users, the ones you’ll use are these:

CategoryWho’s in itSource, target or both
Public GroupsEveryone in the group, and in the roles and groups inside itBoth
Roles“all of the users in the specified role”Both
Roles and Internal SubordinatesThe role, “plus all of the users in roles below that role, excluding site and portal roles”Both
Territories, and Territories and SubordinatesThe territory, or the territory and all territories below itBoth, where territories are on (chapter 9)
Queues“All records owned by the queue, excluding records owned by individual members of the queue”Source only
Managers Groups, and Manager Subordinates GroupsA user’s managers, or a manager and their reportsChapter 7, module 1

All from Sharing Rule Categories. Two more need care. Roles and Subordinates is “Deprecated. Use Roles and Internal Subordinates instead.” And Roles, Internal and Portal Subordinates includes site and portal roles, so it reaches external users. If you pick it, or Portal Roles, as a target, “you get an alert when you save the sharing rule” (Sharing Rule Considerations (opens in a new tab), Salesforce Help, checked 2026-11-07). Read the alert. Chapter 14 covers external users.

Here’s how I teach the target. Look at the role hierarchy, find the person you’re sharing with, and ask one question: do you want to go downward?

Say you want to share some records with the regional vice president of region 2.

  • Target: Region 2 VP, the role. Only the people in that role get the records.
  • Target: Region 2 VP, role and internal subordinates. The VP gets them, and so do the managers and assistant managers below them. It grants downward.

Either way, it skips region 1, because region 1 is a different branch. And either way, the senior VP above region 2 gets them too, because of the hierarchy. “Users in the role hierarchy are automatically granted the same access that users below them in the hierarchy have from a sharing rule,” for standard objects, or for custom objects with Grant Access Using Hierarchies selected (Sharing Rule Considerations).

So the hierarchy always carries access upward. Subordinates carry it downward only if you ask. If you want to go downward, include subordinates. If you don’t, don’t.

Go downward, or not Go downward, or not. A role hierarchy: a senior VP, with a region 1 VP and a region 2 VP below; managers below each VP, and assistant managers below the region 2 managers. First frame, the target is the region 2 VP role: the region 2 VP and the senior VP see the records; region 1, the region 2 managers and the assistant managers don't. Second frame, the target is the region 2 VP and internal subordinates: the region 2 VP, its managers and assistant managers and the senior VP see them; region 1 still doesn't. Footnote: the hierarchy carries access up, for standard objects and custom objects with Grant Access Using Hierarchies; subordinates carry it down only if you choose them. {"author": "Steve Simpson", "blueprint": "1.0.0", "builder": "standard 1.57.1", "built": "2026-11-01", "id": "DGM-SVA-OB-03", "rights": "\u00a9 2026 Twinshark LLC. All rights reserved.", "template": "tree 0.1.0", "theme": "stevetecharc 1.4.0"} Senior VP sees it Region 1 VP can't see it Region 1 managers can't see it Region 2 VP the target sees it Region 2 managers sees it Assistant managers sees it The hierarchy carries access up. Subordinates carry it down only if you choose them. © 2026 Twinshark LLC · stevetecharc.com
Click to enlarge

Now a bigger example from class. Records owned by the region 1 managers need to reach the product side: the hardware VP and their team, the software VP and their team, and the support VP and their team.

You could target each one with its own rule: hardware VP and subordinates, then software, then support. Three rules with the same source.

Or you put those three roles, each with its subordinates, in one public group, and target the group. If they all have the same source, you don’t need to create multiple rules. And it works on the source side too: put the region 1 managers’ role in a group, and next year, when region 3 needs the same, you add region 3 to the group, not a rule.

That’s the power of the group: you can add more to it at the source or at the target, without touching the rule. Groups on both sides are what make one owner-based rule a vacuum cleaner (module 1).

When it’s really three different decisions, though, keep three rules. If hardware should only get hardware records, that’s not an owner question anymore. It’s about what’s on the record, and module 3 helps you choose.

The source and the target can be the same bucket. Salesforce’s own example shares “all account records owned by the Sales Rep role with the same Sales Rep role” (Create Owner-Based Sharing Rules (opens in a new tab), Salesforce Help, checked 2026-11-07). It’s how peers see each other’s work under a Private default: same team, same records.

Two cautions. A role as both source and target is one rule per role; with many teams, that adds up quickly against the 300 (chapter 7, module 4). And remember that a second rule with the same source and target overwrites the first (module 1).

A rule on one object can reach records on another.

  • Up to the account. “Sharing rules automatically grant additional access to related records. For example, opportunity, contact, or case sharing rules give role or group members access to the account associated with the child record” (Sharing Rule Considerations).
  • Down from the account. An account rule asks for more than one level. You set the access to the accounts, and also to their contacts, opportunities and cases, where Private is an option (Create Owner-Based Sharing Rules). “Contact Access isn’t available when the organization-wide default for contacts is set to Controlled by Parent” (same page).

So when you share accounts, decide the children on purpose. Read/Write on the account doesn’t have to mean Read/Write on every opportunity. Chapter 10 covers the access you get for free through these relationships.

What one rule reaches What one rule reaches. An account rule: shares the accounts, at Read Only or Read/Write, and sets access to their contacts, opportunities and cases, where Private is an option; contact access isn't offered when contacts are Controlled by Parent. An opportunity, contact or case rule: shares those records, and gives the same people access to the account each one belongs to. Footnote: a rule on one object can open another; decide the related records on purpose. {"author": "Steve Simpson", "blueprint": "1.0.0", "builder": "standard 1.57.1", "built": "2026-11-01", "id": "DGM-SVA-OB-04", "rights": "\u00a9 2026 Twinshark LLC. All rights reserved.", "template": "comparison 0.5.0", "theme": "stevetecharc 1.4.0"} An account rule down to the children Shares the accounts Sets access to their contacts, opportunities and cases Private is an option for each No contact access when contacts are Controlled by Parent An opportunity, contact or case rule up to the account Shares those records Also gives access to the account each one belongs to A rule on one object can open another. Decide the related records on purpose. © 2026 Twinshark LLC · stevetecharc.com
Click to enlarge

The target gets the share. It doesn’t get the object. As module 1 says, the users must have profile and permission set access to match the level you share. And “If multiple sharing rules give a user different levels of access to a record, the user gets the most permissive access level” (Sharing Rule Considerations). So when you plan a target, look at every rule that already reaches those people, not just this one.

In 2023 I made a video on owner-based rules: the source bucket, the target bucket, and where the target sits in the role hierarchy. The note under the video says what’s still right and what’s changed since.

STA 4.9 · Salesforce Owner Based Sharing Rules · 9:43 · published 2023-10-26 · plays from YouTube when you click it · Watch on YouTube · More videos: Salesforce Security Architecture Videos
  • For each rule: the source bucket and the target bucket, picked from the categories, with the reason.
  • For each role in a target: go downward or not. Roles and Internal Subordinates only where the people below need the records.
  • Who above the target gets the records through the hierarchy, and, for custom objects, whether Grant Access Using Hierarchies should be on.
  • Where targets reach external users (Roles, Internal and Portal Subordinates, Portal Roles), and whether they should.
  • Where several targets share one source: one rule to a group, or separate rules because the decisions really differ.
  • For account rules, the access to contacts, opportunities and cases, each set on purpose.

Beyond the exam: what AI changes. “Share the region 1 managers’ opportunities with the product teams” sounds like one instruction. An agent that builds the rule has to turn it into a source, a target and a category, and “the product teams” could mean three roles, three roles with their subordinates, or a group. Each one reaches different people. Ask the agent which category it chose on each side before you accept the rule, because neither side can change after it’s saved.