On an Experience Cloud site with Embedded Messaging configured, custom LWCs embedded in the chat widget — or Custom Lightning Types (CLTs) used in Agentforce conversations — may run in the Guest User context even when the end user is authenticated on the parent Experience Cloud site.
This results in:
@wire adapters returning no data or guest-scoped results.UserType = Guest despite the user being logged in on the parent site.@wire.asGuest: false on LWC wire requests after the change.@wire adapters, imperative Apex calls, and Lightning Data Service (ui-record-api) calls.@wire adapters, and the user's profile is not in the ESD Site's Members, those operations will run in the Guest User context. Add the relevant profile(s) to the Members section of the ESD Site to ensure CLTs run in the logged-in user's context.Reference: https://help.salesforce.com/s/articleView?id=platform.networks_customize_members.htm&type=5
005389197

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.