Sharing for Experience Cloud users

Partner and customer licenses, sharing sets and share groups, partner roles, and how a portal user sees records that internal users own.

How does an Experience Cloud site user reach the records they need, and only those, when almost all of them are owned by internal users? It depends on their license: some give a role and standard sharing, others only sharing sets. The general sharing model is in Record access.

External users and their licenses

An external user is a customer or a partner who logs in to an Experience Cloud site. Their record is a person account or a contact on a customer or partner account. Their license decides which sharing tools reach them:

License Role and standard sharing Sharing sets
Customer Community No Yes
External Apps No Yes
Customer Community Plus Yes Yes
Partner Community Yes Yes
Channel Account Yes Yes

Users without a role are high-volume users, meant for orgs with thousands to millions of external users. Having no role, they cannot be in public groups or in owner-based sharing rules, and their records cannot be shared manually. Help sums it up for Customer Community: it supports sharing sets, not sharing rules.

A requirement that gets forgotten: to create customer users, the account owner must have a role assigned.

Sharing sets

A sharing set gives site users access to any record associated with an account or contact that matches their own account or contact. It works by access mapping: for each object you pick a field on the user and one on the record, and both must point to an account or a contact. With Contact.Account on the user and Account on the case, the user sees every case of their account.

What to know before designing on them:

  • There is one sharing set per profile, and it applies across all the sites the user is a member of.
  • It grants Read Only or Read/Write.
  • Its access does not roll up the role hierarchy: the user’s superior does not inherit it.
  • It does not offer objects whose default is Public Read/Write, or custom objects without a lookup to account or contact.
  • A sharing set on contacts, cases or opportunities does not open the parent account: the account must be included.
  • Reports and dashboards do not support it.

The list of supported objects includes insurance objects: InsurancePolicy, Claim, ClaimCoverage, Producer and ProducerCommission, among others. It does not name InsurancePolicyParticipant or InsurancePolicyCoverage.

Help leaves one question open: according to its license limitations, sharing sets do not support objects associated with multiple other objects of the same type, yet the policy, with several lookups to Account, is on the list. This page does not know how the two sentences reconcile; test it in a sandbox.

Sharing sets are in Enterprise, Performance, Unlimited and Developer Editions, and creating them requires the Customize Application permission.

Share groups

A high-volume user also creates records, and nobody else sees them. A share group solves that: it shares the records owned by high-volume users with internal users and with external users of the same parent account. Those records can also enter criteria-based or guest user sharing rules.

Each share group is associated with a sharing set. Activating it takes a while, and an email arrives when it finishes. Deactivating it removes every other user’s access, with no notice. It does not work for guest users, who need guest user sharing rules, and it is not available to users with Customer Community Plus or Partner Community. The access these users have to their own account and its contacts is explained in Implicit sharing.

The partner role hierarchy

When the first external user of a partner account is enabled, Salesforce creates for that account a hierarchy of up to three roles: Partner User, Partner Manager and Partner Executive. The top one sits under the role of the account owner, usually the channel manager. The role names include the account name.

A partner's data rolls up to the owner of its accountA chain of five roles, top to bottom. At the top, the internal roles above the owner of the partner account. Below, that owner's role, usually the channel manager. Below it, the three partner roles Salesforce creates for the account: Partner Executive, Partner Manager and Partner User. Each role sees what the roles below it own or have shared with them, so a Partner User's data reaches the account owner and the internal roles above.Higher internalrolesAccount owner'srolePartner ExecutivePartner ManagerPartner User

Each partner sees and edits what users below them own or have shared with them, whatever the sharing model. And partners’ data rolls up to the account owner’s role. If a partner user is disabled, their role becomes obsolete and their data stops rolling up.

Fewer roles are better. Help recommends reducing them to one and giving super user access to the partner who must see others’ data: it reaches those in the same role and below, and only for cases, leads, custom objects and opportunities. The number of roles is set in Digital Experiences Settings and does not apply to accounts that already exist. The default ceiling is 50,000 external roles per org.

Account Role Optimization (ARO), on by default in new orgs since Spring ’22, gives a shared role to the only external user with a role on an account. Its price: a rule aimed at that shared role exposes the records to every account sharing it. Help asks for rules to target a public group with the user in it.

With Partner Community or Customer Community Plus licenses, an external account hierarchy shares the data of child accounts with the users of parent accounts, up to five levels.

How an external user reaches an internal record

Almost everything a partner or a customer needs is owned by an internal user. There are four routes:

  1. External default. It is the baseline access of external authenticated users, and never more open than the internal one. In orgs created after Spring ’20 it starts as Private for every object except those controlled by their parent. Help recommends keeping it Private whenever possible.
  2. Sharing set. It opens records through their relationship with the user’s account or contact, whoever the owner is. It is the route Help prefers for external users, for performance, security and scale.
  3. Sharing rule. Only for licenses with a role. The target can be a portal role, a portal role with its subordinates, a public group, or the All Partner Users or All Customer Portal Users group. None of them includes high-volume users.
  4. Implicit sharing. The external user reaches their parent account and the account’s contacts enabled as users.

The third route has a trap. The Roles and Internal Subordinates category excludes portal roles; Roles, Internal and Portal Subordinates includes them. In orgs created on or after February 8, 2024 access is secure by default. In older orgs that enabled digital experiences before Winter ’26, Help proposes the Convert External User Access Wizard. Public groups also nest: one can contain another with external users.

Example: an insurer with two portals

An insurer opens a customer portal and a broker portal. Policies and claims are loaded every night by an internal integration user, so all of them are internally owned. The case is invented; the order of the steps is this page’s proposal.

  1. Licenses. Customers get Customer Community: there are many of them and they only consult. Brokers get Partner Community, on each brokerage’s account enabled as a partner, with a single role.
  2. Baseline. The policy’s external default stays Private; the administrator checks it in Sharing Settings.
  3. Customers. A read-only sharing set for the customer profile: the policy by NameInsuredId, the primary insured, and the claim by AccountId, both against Contact.Account.
  4. Brokers. Another sharing set for the broker profile: the policy by IntermediaryAccountId, the intermediary account, against Contact.Account.
  5. Permissions. Both profiles get Access Insurance Objects, under General User Permissions.

The outcome: each customer sees their policies and claims; each brokerage, the policies it intermediates. One sharing set per profile thus replaces one rule per broker; that is this page’s reading. That NameInsuredId points to the account is too: Help computes its indicators with “NameInsuredId = Current Account”. The rule-based alternative with a channel field is in Sharing and encryption for insurance objects.

Which mechanism to use

  • Sharing set when the record relates to the user’s account or contact. It is the first option with any license.
  • Share group when others must see what high-volume users create.
  • Sharing rule when access does not depend on the user’s account, such as a common catalog, and the license has a role.
  • Super user when a lead partner must see their colleagues’ cases, leads or opportunities.

The criterion: if the relationship with the user’s account is already in the data, a sharing set is enough; if not, a license with a role is needed.

Limits and considerations

Aspect Limit
Sharing sets per profile One
Access of a sharing set Read Only or Read/Write; does not roll up the hierarchy
Partner roles per account Up to three
External roles per org 50,000 by default
Partner super user Cases, leads, custom objects and opportunities
External account hierarchy Five levels; incompatible with ARO on single-user accounts
Deactivated share group Removes access without notice

Before using it in production

  1. Choose each user type’s license knowing whether it will need a role (see “External users and their licenses”).
  2. Assign a role to the owner of each customer account before creating its users.
  3. Set the number of partner roles before enabling the first partner, because the change does not reach existing accounts.
  4. Keep the external default Private and open access with sharing sets.
  5. Test every access mapping in a sandbox, above all on objects with several lookups to account.
  6. Review which public groups and rules include external users, and which role category they use.
  7. With ARO on, do not aim rules at the shared role.

Official sources

Back to the knowledge base