SfSkills Domains Docs GitHub

Home / data / external-user-data-sharing

external-user-data-sharing

Configure record visibility for external users (Customer Community, Customer Community Plus, Partner Community) using External OWDs, Sharing Sets, and external sharing rules. Trigger keywords: sharing data with external users, portal user record visibility, Experience Cloud sharing model, sharing set configuration, external OWD setup, Customer Community data access, High-Volume Portal sharing. NOT for the internal sharing model — OWD, role hierarchy, sharing rules — use admin/sharing-and-visibility. NOT for guest-user record access or site hardening — use security/experience-cloud-security.

Open the skill folder on GitHub


External User Data Sharing

This skill activates when configuring record visibility for authenticated external users in Experience Cloud (Customer Community, Customer Community Plus, or Partner Community). It covers External OWDs, Sharing Sets, and external sharing rules, and produces the correct mechanism selection based on the user license type.


Before Starting

Gather this context before working on anything in this domain:


Core Concepts

External Org-Wide Defaults (External OWD)

External OWD is a separate org-wide default that applies exclusively to external users: portal users, community users, and guest users. It is configured per object in Setup > Security > Sharing Settings, in the "External Access" column alongside the standard OWD.

Key platform behavior:

Sharing Sets (High-Volume Portal / Customer Community)

Sharing Sets are the ONLY sharing mechanism for High-Volume Portal (HVP) users, which corresponds to the Customer Community license. Standard Apex managed sharing, criteria-based sharing rules, manual sharing, and role-hierarchy-based sharing do not apply to HVP users.

How Sharing Sets work:

Customer Community Plus — Full Sharing Model with One Role

Customer Community Plus users participate in the full Salesforce sharing model but are placed in a single role per account (no role hierarchy below that role). This means:

Partner Community — Three-Tier Role Hierarchy Per Account

Partner Community users participate in a full role hierarchy with three tiers per account: Partner Executive, Partner Manager, and Partner User. Records owned by a lower-tier role are visible to higher-tier roles within the same account.

Portal Account Sharing Model

External users inherit record access through the Account they are associated with. When an external user's Contact is associated with an Account:


Common Patterns

Pattern: Sharing Set for Customer Community (High-Volume Portal) Case Access

When to use: You have Customer Community (HVP) users who need to read and update Cases associated with their Account or Contact.

How it works:

  1. Set External OWD on Case to Private.
  2. Navigate to Setup > Digital Experiences > Settings > Sharing Sets.
  3. Create a Sharing Set. Select the Customer Community HVP profile(s).
  4. In the "Configure Access" section, add the Case object.
  5. Set "Grant Access Based On" to the relationship path: User > Account > Account (matches the Account field on Case).
  6. Set Access Level to Read/Write.
  7. Save and allow the sharing recalculation to complete.

Why not criteria-based sharing rules: Criteria-based sharing rules do not fire for HVP users. Attempting to use them results in the rule being created successfully but having no effect for HVP users — a silent failure.

Pattern: Criteria-Based External Sharing Rule for Customer Community Plus

When to use: You have Customer Community Plus users who need access to records based on a field value (e.g., region, status) rather than a direct account relationship.

How it works:

  1. Confirm the users are on Customer Community Plus license (not Customer Community / HVP).
  2. Set External OWD on the object to Private.
  3. Navigate to Setup > Security > Sharing Settings > Object Sharing Rules > New.
  4. Choose "Based on criteria". Set criteria (e.g., Region__c = "West").
  5. In "Share With", select "Customer Portal Users" or the specific community role group.
  6. Set access level to Read Only or Read/Write.
  7. Save. The rule fires for CC Plus users during sharing recalculation.

Why not a Sharing Set: Sharing Sets are relationship-based only. They cannot filter on picklist values, formula results, or status fields. Criteria-based sharing rules cover field-based access scenarios.


Decision Guidance

SituationRecommended ApproachReason
Customer Community (HVP) users need access to their own CasesSharing Set with Account→Account or Contact→Contact pathOnly sharing mechanism for HVP; criteria rules are ignored
Customer Community Plus users need field-filtered accessCriteria-based external sharing ruleCC Plus participates in full sharing model; Sharing Sets do not apply
Partner Community users need access within their account hierarchyExternal OWD + role hierarchy (already provided by partner roles)Three-tier hierarchy provides access within account automatically
All external users need read access to a reference objectExternal OWD set to Public Read OnlySingle OWD change grants access without per-user configuration
External users must not see records that internal users can see publiclyExternal OWD set to Private (tighter than internal OWD)External OWD enforces stricter access independently
Customer Community Plus users need access to records owned by internal users in a specific groupExternal Sharing Rule with "Share With Portal Users in Role"Grants access from internal group to external role group

Step-by-step instructions for an AI agent or practitioner working on this task:

  1. Identify license type and volume — Confirm whether the external users are Customer Community (HVP), Customer Community Plus, or Partner Community. Confirm expected user count. This determines which mechanism is available.
  2. Audit current External OWD settings — For every object the external users need to access, note the current External OWD value. Verify it is not more permissive than the internal OWD. Tighten or open External OWD as needed for baseline access.
  3. Select the correct sharing mechanism — Use the Decision Guidance table above. HVP → Sharing Set. CC Plus → criteria-based sharing rule or external sharing rule. Partner Community → sharing rules or rely on role hierarchy.
  4. Configure the mechanism — For Sharing Sets: select the HVP profile, object, relationship path, and access level. For criteria-based rules: define criteria, share-with target, and access level. Document the exact configuration.
  5. Validate access in a sandbox — Log in as a test external user of the correct license type. Confirm the target records appear with correct access level. Confirm records outside the sharing scope are not visible.
  6. Check sharing recalculation status — After saving Sharing Sets or changing External OWD, check Setup > Background Jobs for a pending sharing recalculation. Do not mark the work complete until the job finishes and access is confirmed stable.

Review Checklist

Run through these before marking work in this area complete:


Salesforce-Specific Gotchas

Non-obvious platform behaviors that cause real production problems:

  1. Sharing Sets silently do nothing for CC Plus and Partner Community users — Sharing Sets only apply to High-Volume Portal (Customer Community) users. If a Sharing Set is configured and associated with a CC Plus or Partner Community profile, Salesforce does not raise an error, but the Sharing Set has no effect. Practitioners discover this only when test logins fail.
  2. External OWD defaults to internal OWD value — not to Private — When a Salesforce org first activates communities, external OWD inherits the current internal OWD value for each object. If internal OWD is Public Read Only, external users immediately get the same access. This is a common unintentional data exposure path that goes unnoticed until a security review.
  3. Criteria-based sharing rules do not fire for HVP users — Criteria-based sharing rules and manual sharing are not evaluated for High-Volume Portal users. A rule may exist and appear correctly configured, yet HVP users will not receive access. There is no error or warning in Setup.
  4. Changing External OWD triggers an org-wide sharing recalculation — Any External OWD change queues a background recalculation job across the entire org. For large data volumes, this can take hours. During recalculation, external user record access may be temporarily inconsistent. Plan External OWD changes during maintenance windows.
  5. Portal users only see records under their own Account by default — Even if External OWD is set to Public Read Only for an object, portal users see all records regardless of account. If the intent is to restrict to their account's records only, External OWD must be Private and access granted via a Sharing Set or sharing rule scoped to the account relationship.

Output Artifacts

ArtifactDescription
External OWD configuration tablePer-object external OWD settings with rationale
Sharing Set configuration specProfile, object, relationship path, access level for each Sharing Set
External sharing rule specCriteria, share-with target, access level for each rule
Validated test user access reportConfirmed records visible / not visible for each external user type

Package files