您位於此處:
在增強型 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.