Gå til indhold

Sharing Sets in Practice

Dette indhold er ikke tilgængeligt i dit sprog endnu.

Module 3 of 6 in the chapter Sharing Sets, Share Groups and Data Sharing for High-Volume Users, chapter 15 of Securing Salesforce: Sharing and Visibility. Each module stands on its own.

The question this module answers: You’ve built a sharing set and the restaurant’s staff can see their orders. What won’t it do, and when someone says “I can’t see it,” where do you look?

Module 2 built the sharing set. Lakeview Café’s staff see Lakeview Café’s orders, and nobody wrote a rule. This module is about where its edges are.

A sharing set is a narrow tool. It has one job: give a crowd of site users their own company’s records, at a scale where roles would get in the way. It does that job well. It isn’t as flexible as the tools in the rest of this course, and it isn’t meant to be. In class I told the room I’d rarely used them, but I wanted them to get the points on the test. In my video I put it as: just be careful, there are a number of limitations.

Here’s why the narrow job matters. A sharing set gives thousands, or millions, of people access to their own company’s records with no role, no group and no rule. Salesforce built high-volume users without roles on purpose: it “eliminates performance issues associated with role hierarchy calculations” (About High-Volume Community or Site Users (opens in a new tab), Salesforce Help, checked 2026-11-26). A sharing set is how you share at that scale without bringing those calculations back.

The limits below come with that design. Each one is in Salesforce’s own words, so you know exactly where the edges are before you choose it.

“Record access granted to users via a sharing set isn’t extended to their superiors in the role hierarchy” (Create a Sharing Set for Experience Cloud Site Users (opens in a new tab), Salesforce Help, checked 2026-11-26). The access stays with the person. Anywhere else in this course, when someone gets a record, the people above them in the hierarchy get it too. Not here.

A sharing set is a match. It “grants site users access to any record associated with an account or contact that matches the user’s account or contact” (same page). Matches. It doesn’t go up to a parent account, and it doesn’t go down to the child accounts.

Say the kitchen equipment maker sells to a restaurant group. The group’s head office is an account, and each of its twelve restaurants is a child account under it. Someone at head office logs in and asks to see every restaurant’s orders. The sharing set looks at their contact, finds the head office account, and shows them the head office’s orders. The twelve restaurants’ orders each point to a different account, and none of them matches.

So what do we do? You have three options, and every one is a design decision:

  • Contacts to Multiple Accounts. Relate the head office person’s contact to all twelve restaurants and map Contact.RelatedAccount, as module 2 showed. It works, and someone has to keep those relationships up to date as restaurants open and close.
  • A lookup that points where you need it. Add a Head Office lookup to the Order, filled by automation from the account’s parent, and map the user’s account to that field. That’s a data model change, and it’s the same trick as chapter 8’s region field: if the value you share on isn’t on the record, put it there. The restaurant staff still match on their own account, so head office people need a profile of their own, with its own sharing set: one sharing set per profile, remember.
  • A different seat. If the customer really runs as a hierarchy, Customer Community Plus brings roles back, and with them external account hierarchies (chapter 14, module 7). That’s a licensing decision, not a sharing one.

It doesn’t bring the parent account with it

Section titled “It doesn’t bring the parent account with it”

“Sharing sets for contacts, cases, and opportunities don’t automatically grant access to these objects’ parent accounts. To grant access, include the account in the sharing set as well” (same page).

Most of the time the user already sees their own account, through implicit sharing (module 1). Where it matters is the head office person from a moment ago. Map cases through Contact.RelatedAccount and they see the cases on all twelve restaurants, but click through to a restaurant’s account and they can’t open it. Add Account to the sharing set with the same mapping, and they can.

It does nothing for an object you haven’t set up

Section titled “It does nothing for an object you haven’t set up”

“Objects with Set Up in the Action column aren’t configured for high-volume user access. Until you configure an object, high-volume users have limited or no access to its records” (same page). Choosing an object isn’t enough; each one needs its access mapping. And the objects that can’t be chosen at all, the ones with a Public Read/Write default and the custom objects with no account or contact lookup, are in module 2.

A sharing set shares records with high-volume users. When the person at Lakeview Café creates an order, they own it, and nobody inside can see it through the sharing set. That’s the other direction, and it’s module 4: share groups.

One per profile, so a profile change is a sharing change

Section titled “One per profile, so a profile change is a sharing change”

“You can have one sharing set per profile only” (same page). That has a consequence people miss. Move a user to a different profile and you’ve moved them to a different sharing set, or to none. If the profile only exists to choose the sharing set, write that down where your admins will see it.

Records aren’t the only thing a site user needs to see. They also need to see people: the colleague who placed an order, the service agent on their case. With User Sharing on, who sees whom is its own decision (chapter 14, module 8, covers what site users see of other people).

For most users you open up user records with a manual share. High-volume users can’t take a manual share, so they get user records the same way they get everything else. Salesforce: “Grant internal and most external users access to a user by creating a manual share using the Sharing button on the user detail page of that user. Grant high-volume users access to other users by creating a sharing set” (Differences Between User Sharing with Manual Sharing and Sharing Sets (opens in a new tab), Salesforce Help, checked 2026-11-26).

Its table comes down to one line: when the user getting access is high-volume, the answer is a sharing set, whoever they need to see. For everyone else, it’s a manual share.

So User is one of the objects you can add to a sharing set (Create a Sharing Set, same list as module 2). The mapping works like every other: a field on the person looking, a field on the person being looked at, both pointing to an account or both to a contact. Map the account on both sides, and Lakeview Café’s staff can see each other, and nobody at the restaurant down the street.

In class I put it this way: if you have a Customer Community license, you can’t get access to the share table. Everything else in this course writes rows: a sharing rule writes them, a team writes them, Apex managed sharing writes them. A sharing set doesn’t give you a row for each record. The access comes from the match, worked out from the user’s account or contact and the record’s lookup.

That changes how you explain it. In chapter 13, when someone couldn’t see a record, you went looking for the row that should have been there (chapter 13, module 5). For a high-volume user there’s no row to find. You walk the match instead.

Salesforce has its own walk-through for high-volume users, and it’s short (Troubleshoot Access Issues for High-Volume Users (opens in a new tab), Salesforce Help, checked 2026-11-26). It starts where chapter 13 starts, with the object:

  1. Object permissions. “Go to the user’s detail page in Setup, and click View Summary.” No Read on the object, and no sharing set will help. “We recommend that you use permission sets and permission set groups to assign permissions.”
  2. The external default. “Check the external organization-wide default sharing settings for the object on the Sharing Settings Setup page.”
  3. The sharing set. “Review your sharing sets on the Digital Experiences > Settings page. Make sure that the correct profiles are selected and the access mapping is configured correctly.”

That’s Salesforce’s list. Here’s what I’d add, because these are where a match most often misses:

  1. The record’s lookup. Is the account or contact field on the record actually filled in, and is it the right one? An order with an empty Account field matches nobody.
  2. The relationship. If you map Contact.RelatedAccount, is the account-contact relationship active (module 2)?
  3. The shape. Is the record on a different account: a parent, a child, a sister restaurant? Then the sharing set is working exactly as designed, and the question is a design question, back to the three options above.
When a site user can't see a record When a site user can't see a record. A high-volume user, with no role, can't see a record they should. First question: is Read on the object missing? If yes, give it with a permission set, checking with View Summary. Next: is the object missing from the sharing set for their profile? If yes, add it and set up the mapping; there's one sharing set per profile. Next: is the record's lookup empty, or wrong? If yes, fill the lookup or fix the mapping, because an empty lookup matches nobody. Next: is the record on a parent, child or other account? If yes, the sharing set is working as designed: relate the contact to more accounts, add a lookup, or choose another seat. If none of these, check the external default and that account-contact relationships are active, then test as the user. Footnote: there's no share row to find; walk the match from the user to the record. {"author": "Steve Simpson", "blueprint": "1.0.0", "builder": "standard 1.59.0", "built": "2026-11-20", "id": "DGM-SVA-SSG-03", "rights": "\u00a9 2026 Twinshark LLC. All rights reserved.", "template": "flow/decision 0.1.0", "theme": "stevetecharc 1.4.0"} A site user can't see a record a high-volume user, no role Is Read on the object missing? Give it with a permission set check with View Summary Is the object missing from their profile's sharing set? Add it and set up the mapping one sharing set per profile Is the record's lookup empty, or wrong? Fill the lookup, or fix the mapping an empty lookup matches nobody Is the record on a parent, child or other account? Working as designed more account relationships, a lookup, or another seat Check the external default and active relationships then test as the user yes no yes no yes no yes no There's no share row to find: walk the match from the user to the record. HOW TO READ IT a step the step that matters most a question an answer yes goes right to an answer; no goes down to the next question © 2026 Twinshark LLC · stevetecharc.com
Click to enlarge

And then prove it as the user. Chapter 13’s three users work here too: one who should see the record, one who shouldn’t, and an admin who sees everything (chapter 13, module 1). For a site, the one who shouldn’t is a person at another restaurant.

Test knowledge. Know that sharing set access isn’t extended to superiors in the role hierarchy; that sharing sets for contacts, cases and opportunities don’t grant the parent account unless you include Account; that an object marked Set Up gives high-volume users limited or no access until it’s configured; that high-volume users get access to other users through a sharing set, and everyone else through a manual share; and Salesforce’s three troubleshooting checks for high-volume users: permissions with View Summary, the external default, then the sharing set’s profiles and access mapping. A likely area, not a known question.

  • Whether any customer runs as a hierarchy (head office and branches), and which option: Contacts to Multiple Accounts, a lookup filled by automation, or a seat with roles.
  • For contacts, cases and opportunities in a sharing set, whether Account goes in too.
  • Whether site users need to see other people, and if so, User in the sharing set with an account mapping.
  • That every profile change for site users is reviewed as a sharing change.
  • The troubleshooting order your support team follows: permissions, the external default, the sharing set, then the record’s lookup and the shape of the accounts.

Beyond the exam: what AI changes. An agent on a customer site works inside the same match. A head office manager who asks the agent for “all our restaurants’ orders” gets the head office’s orders and nothing else, and an agent may answer as if that’s everything. That’s not a leak; it’s an incomplete answer, and it can do harm in a different way. When you test an agent on a site, ask it questions that cross accounts, and check that it says what it can’t see rather than presenting part of the picture as the whole. Chapter 20 covers agents.