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.
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:
- 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.
- 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.
- 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.
- 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.
- 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.
- Baseline. The policy’s external default stays Private; the administrator checks it in Sharing Settings.
- Customers. A read-only sharing set for the customer profile: the policy by
NameInsuredId, the primary insured, and the claim byAccountId, both againstContact.Account. - Brokers. Another sharing set for the broker profile: the policy by
IntermediaryAccountId, the intermediary account, againstContact.Account. - 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
- Choose each user type’s license knowing whether it will need a role (see “External users and their licenses”).
- Assign a role to the owner of each customer account before creating its users.
- Set the number of partner roles before enabling the first partner, because the change does not reach existing accounts.
- Keep the external default Private and open access with sharing sets.
- Test every access mapping in a sandbox, above all on objects with several lookups to account.
- Review which public groups and rules include external users, and which role category they use.
- With ARO on, do not aim rules at the shared role.
Official sources
- Experience Cloud User Licenses — Salesforce Help (opens in a new tab)
- Experience Cloud License Limitations — Salesforce Help (opens in a new tab)
- About High-Volume Community or Site Users — Salesforce Help (opens in a new tab)
- Create a Sharing Set for Experience Cloud Site Users — Salesforce Help (opens in a new tab)
- Use Share Groups to Share Records Owned by High-Volume Experience Cloud Site Users — Salesforce Help (opens in a new tab)
- Create Experience Cloud Site Users — Salesforce Help (opens in a new tab)
- Partner User Roles — Salesforce Help (opens in a new tab)
- Considerations When Creating Partner Users — Salesforce Help (opens in a new tab)
- Configure Digital Experiences Settings — Salesforce Help (opens in a new tab)
- Grant Portal Super User Access to Partner and Customer Users — Salesforce Help (opens in a new tab)
- Optimize Account Roles to Improve Performance and Scale — Salesforce Help (opens in a new tab)
- Sharing Considerations for Using Account Role Optimization in Experience Cloud Sites — Salesforce Help (opens in a new tab)
- Configure an External Account Hierarchy — Salesforce Help (opens in a new tab)
- External User Access Best Practices — Salesforce Help (opens in a new tab)
- External Organization-Wide Defaults Overview — Salesforce Help (opens in a new tab)
- Default Organization-Wide Access Levels — Salesforce Help (opens in a new tab)
- Implicit Sharing — Salesforce Help (opens in a new tab)
- Sharing Rule Categories — Salesforce Help (opens in a new tab)
- Assign the FSC Insurance Permission Set License to Users — Salesforce Help (opens in a new tab)
- Considerations for Policies and Claims — Salesforce Help (opens in a new tab)
- InsurancePolicy — Financial Services Cloud Developer Guide (opens in a new tab)
- Claim — Financial Services Cloud Developer Guide (opens in a new tab)