Guest user vs Digital Experience compatibility
Guest user vs Digital Experience compatibility
3B Portals runs in two hosting contexts and supports both.
The two contexts
- Guest user on a Salesforce Site. The visitor is anonymous. There is no Salesforce User identity. The portal user is a Contact, identified by a session key or magic link.
- Authenticated user on an Experience Cloud (community) site. The visitor is a real Experience Cloud User with a linked Contact.
How the portal user is identified
The portal resolves the Contact behind each request in one of two ways:
- Session key. This is the guest path. The Contact is resolved from a valid session key. Magic links must first be redeemed for a session key. Guest requests cannot choose a Contact any other way.
- Community session. This is the Experience Cloud path. The Contact is the one linked to the signed-in Experience Cloud user.
User type on the client
The host page exposes userType and siteUrl on window.globals (see Technical architecture and request flow). Custom components can branch on userType:
userType |
Context |
Guest |
Guest user on a Salesforce Site |
PowerCustomerSuccess, CspLitePortal, PowerPartner, CustomerSuccess, CsnOnly |
Experience Cloud user |
Standard |
Internal Salesforce user, for example in the builder |
Practical compatibility notes
- Guest access is per page, gated by
Guest_User_Accessible__c. Protected pages trigger the passwordless login flow.
- Embedded screen flows and dynamic native LWCs work for guests because their Lightning Out aura apps (
b3p:lightningOutFlow, b3p:lightningOutLWC) implement ltng:allowGuestAccess. See Embedded screen flows and Standard components.
- For a guest Site, ensure the guest user profile has access to the Visualforce pages, the Apex controllers, and read on the objects and fields the portal renders. For an Experience Cloud site, the community user profile needs the same access.
Which to choose
- Use a Salesforce Site with guest access for public portals, invitation based portals (magic links), and installable PWAs where you do not want Experience Cloud licences per user.
- Use Experience Cloud when users already have community logins and you want to reuse that identity. The portal will resolve their Contact automatically from the community session.