Sub topic 12
External Org-Wide Defaults for Experience Cloud Users
This chapter assumes you know internal org-wide defaults (OWD), the role hierarchy, and the basics of Experience Cloud sites. It covers how Salesforce sets a separate baseline for external users.
Why a separate external baseline exists
Internal employees and external users (customers, partners, portal users) usually need very different access. Employees may see every account. A customer should see only their own company's records.
If one OWD controlled both groups, opening an object to employees would also open it to customers. External OWD solves this. Each object gets two baselines:
- Default Internal Access applies to employees.
- Default External Access applies to Experience Cloud and portal users.
You set both in Setup > Sharing Settings, in the Organization-Wide Defaults section. The external column appears once the external sharing model is enabled.
The one rule you must remember
External access can never be more open than internal access. Salesforce enforces this when you save.
| Object | Internal OWD | Allowed external OWD |
|---|---|---|
| Account | Public Read/Write | Private, Public Read Only, Public Read/Write |
| Account | Public Read Only | Private, Public Read Only |
| Account | Private | Private |
| Contact | Controlled by Parent | Controlled by Parent |
A common setup is internal Public Read Only with external Private. Employees can browse accounts, and a community user sees only records they own or that are explicitly shared with them.
How external users get access beyond the baseline
A Private external baseline does not leave external users with nothing. Several mechanisms open access, as they do for internal users:
- Ownership. External users see records they own.
- External roles. Partner Community and Customer Community Plus users sit in account-based roles (up to three per account). Users higher in the account's role hierarchy see records owned by users below them.
- Sharing sets. These give Customer Community users access to records that match the user's account or contact, for example cases for their own account.
- Share groups and sharing rules. These open records to groups of external users.
- Guest users. Unauthenticated guest users are separate. They get access only through guest user sharing rules, not through the external OWD.
Customer Community licenses have no roles, so sharing sets and share groups are the main way to open access for those users.
Design guidance
- Start external access at Private for any object that holds data from more than one customer.
- Set the internal OWD for the business need, then lower the external OWD until it is as restrictive as the site requires.
- Prefer sharing sets for high-volume Customer Community users over many individual manual shares.
- Test as an external user. Use Log in to Experience as User and confirm the records match your expectation.
Checking external access
The tools from the inspection chapter work for external users too. Query UserRecordAccess with the community user's Id, or look at the share rows for the record and read the RowCause values. A partner user whose access comes from a role, for example, will show a different cause than one who owns the record.
Exercise
Your org has Account internal OWD set to Public Read/Write. You want customers on your site to see only their own account's records. What external OWD should you set, and can it be Public Read/Write?
Show answer
Set the external OWD for Account to Private. Public Read/Write is allowed here, because external access can be equal to or more restrictive than internal access, but it would let every external user edit all accounts. Then open access to each customer's own records with ownership, external roles or sharing sets.