您在此处:
在增强 Web 聊天中以登录用户身份运行自定义组件
在您将自定义 Lightning Web 组件添加到嵌入式服务部署时,即使在用户登录 Experience Cloud 站点时,也会在聊天窗口中以未经身份验证的来宾用户身份运行。要改为以登录站点用户身份运行组件,请将用户的简档或权限集添加到嵌入式服务站点的成员列表中。以登录用户身份运行组件会授予自定义组件读取和处理用户数据的访问权限。
您在此处:
在您将自定义 Lightning Web 组件添加到嵌入式服务部署时,即使在用户登录 Experience Cloud 站点时,也会在聊天窗口中以未经身份验证的来宾用户身份运行。要改为以登录站点用户身份运行组件,请将用户的简档或权限集添加到嵌入式服务站点的成员列表中。以登录用户身份运行组件会授予自定义组件读取和处理用户数据的访问权限。
| 查看支持的版本。 | |
本文适用于:
|
增强 Web 聊天渠道 |
本文不适用于:
|
增强应用程序内聊天、增强 WhatsApp、增强 Facebook Messenger、标准和增强 SMS、增强 Apple Messages for Business、增强 LINE 和自带渠道 |
| 用户权限 | |
|---|---|
| 设置此功能: | 自定义应用程序 以及通过元数据 API 函数修改元数据 |
| 修改权限集和简档: | 管理简档和权限集 |
| 要将嵌入式消息传递组件添加到体验生成器站点: | 创建和设置体验 |
开始之前:
ESW 开头。
要停止组件以登录用户身份运行,请从嵌入式服务站点的成员列表中删除该用户的简档或权限集。

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.