強制使用檢視者's 憑證
社群連接器可以為從連接器建立的所有資料來源強制執行檢視者的憑證。
必讀資訊
數據分析報表可以附加一或多個資料來源。使用者透過連接器建立新資料來源時,可以選取資料來源是否應使用「擁有者的憑證」或「檢視者的憑證」。
當您存取使用者身分屬性時,「有效使用者」取決於授權連接器的人員。
- 如果資料來源具有擁有者的憑證,資料來源擁有者為「有效使用者」。資料來源擁有者會在建立資料來源時授權連接器。
- 對於具有檢視者憑證的資料來源,「有效使用者」是報表檢視者。報表檢視者會在查看報表時授權連接器。
優點
- 您可以確保資料機密性。
- 資料存取權無法與其他使用者共用。
- 確保使用者只能查看與自身相關的資料。
- 使用者更容易建立可擴充的資訊主頁。
導入步驟
以下是對連接器強制執行檢視者憑證的步驟:
- 在連接器的資訊清單中,將
dataStudio.forceViewersCredentials
設定為 true
。詳情請參閱資訊清單參考資料。
- 您可以根據自己的用途,實作存取權控管邏輯。確保只有報表檢視器的相關資料,才會從連接器傳回。如要瞭解程式碼如何存取使用者身分識別/電子郵件地址,請參閱「存取使用者身分屬性」一文。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-12-02 (世界標準時間)。
[null,null,["上次更新時間:2023-12-02 (世界標準時間)。"],[[["A Community Connector can enforce viewer's credentials for all its data sources, ensuring only the report viewer's authorization is used to access data."],["When viewer's credentials are enforced, data access is personalized to each viewer, enhancing data confidentiality and preventing unauthorized sharing."],["To implement this, developers need to enable the `forceViewersCredentials` setting in the connector's manifest and adjust the access control logic to utilize the viewer's identity."],["This approach simplifies creating scalable dashboards while ensuring users only see relevant data based on their individual access rights."]]],[]]