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

How the portal user is identified

The portal resolves the Contact behind each request in one of two ways:

  1. 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.
  2. 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

Which to choose