บังคับใช้ข้อมูลเข้าสู่ระบบของผู้ดู
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เครื่องมือเชื่อมต่อชุมชนสามารถบังคับใช้ข้อมูลเข้าสู่ระบบของผู้ดูสำหรับแหล่งข้อมูลทั้งหมดที่สร้างจากเครื่องมือเชื่อมต่อ
ต้องอ่าน
รายงาน Data Studio อาจมีแหล่งข้อมูลแนบอยู่อย่างน้อย 1 รายการ เมื่อผู้ใช้สร้างแหล่งข้อมูลใหม่จากเครื่องมือเชื่อมต่อ ผู้ใช้เลือกได้ว่าจะให้แหล่งข้อมูลนั้นใช้ข้อมูลเข้าสู่ระบบของเจ้าของหรือข้อมูลเข้าสู่ระบบของผู้ดู
เมื่อคุณเข้าถึงพร็อพเพอร์ตี้ข้อมูลประจำตัวของผู้ใช้ ผู้ใช้ที่มีผลจะขึ้นอยู่กับผู้ที่ให้สิทธิ์เครื่องมือเชื่อมต่อ
- สำหรับแหล่งข้อมูลที่มีข้อมูลเข้าสู่ระบบของเจ้าของ เจ้าของแหล่งข้อมูลคือผู้ใช้ที่มีประสิทธิภาพ เจ้าของแหล่งข้อมูลให้สิทธิ์เครื่องมือเชื่อมต่อเมื่อสร้างแหล่งข้อมูล
- สำหรับแหล่งข้อมูลที่มีข้อมูลเข้าสู่ระบบของผู้ดู ผู้ใช้ที่มีประสิทธิภาพคือผู้ดูรายงาน ผู้ดูรายงานจะให้สิทธิ์เครื่องมือเชื่อมต่อเมื่อดูรายงาน
ข้อดี
- คุณมั่นใจได้ว่าข้อมูลจะเป็นความลับ
- คุณไม่สามารถแชร์สิทธิ์การเข้าถึงข้อมูลจากผู้ใช้รายหนึ่งไปยังรายอื่น
- คุณมั่นใจได้ว่าผู้ใช้จะเห็นเฉพาะข้อมูลที่เกี่ยวข้องกับตนเท่านั้น
- ผู้ใช้จะสร้างแดชบอร์ดที่รองรับการปรับขนาดได้ง่ายขึ้น
ขั้นตอนการใช้งาน
การบังคับใช้ข้อมูลเข้าสู่ระบบของผู้ดูสำหรับเครื่องมือเชื่อมต่อมี 2 ขั้นตอนดังนี้
- ในไฟล์ Manifest ของเครื่องมือเชื่อมต่อ ให้ตั้งค่า
dataStudio.forceViewersCredentials
เป็น true
ดูรายละเอียดได้ที่ข้อมูลอ้างอิงของไฟล์ Manifest
- คุณสามารถนำตรรกะการควบคุมการเข้าถึงไปใช้ได้ โดยขึ้นอยู่กับกรณีการใช้งาน
ตรวจสอบว่าเครื่องมือเชื่อมต่อแสดงเฉพาะข้อมูลที่เกี่ยวข้องของโปรแกรมดูรายงานเท่านั้น โปรดดูเข้าถึงพร็อพเพอร์ตี้ข้อมูลประจำตัวของผู้ใช้เพื่อทำความเข้าใจวิธีที่โค้ดเข้าถึงข้อมูลประจำตัว/อีเมลของผู้ใช้
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[[["\u003cp\u003eA Community Connector can enforce viewer's credentials for all its data sources, ensuring only the report viewer's authorization is used to access data.\u003c/p\u003e\n"],["\u003cp\u003eWhen viewer's credentials are enforced, data access is personalized to each viewer, enhancing data confidentiality and preventing unauthorized sharing.\u003c/p\u003e\n"],["\u003cp\u003eTo implement this, developers need to enable the \u003ccode\u003eforceViewersCredentials\u003c/code\u003e setting in the connector's manifest and adjust the access control logic to utilize the viewer's identity.\u003c/p\u003e\n"],["\u003cp\u003eThis approach simplifies creating scalable dashboards while ensuring users only see relevant data based on their individual access rights.\u003c/p\u003e\n"]]],[],null,["# Force viewer's credentials\n\nA Community Connector can enforce [viewer's credentials](https://support.google.com/looker-studio/answer/6371135?#types&zippy=%2Cin-this-article%2Cviewers-credentials) for all data sources\ncreated from the connector.\n\nRequired reading\n----------------\n\n- [Data source credentials](https://support.google.com/looker-studio/answer/6371135)\n- [Access user identity properties](/looker-studio/connector/user-identity)\n\nData Studio reports can have one or more data sources attached to them. When a\nuser creates a new data source from a connector, they can select whether the\ndata source should use\n[*Owner's credentials* or *Viewer's credentials*](https://support.google.com/looker-studio/answer/6371135).\n\n\nWhen you [Access user identity properties](/looker-studio/connector/user-identity), the *effective user* is based on who\nhas authorized the connector.\n\n- For data sources with *Owner's credentials* , the data source owner is the *effective user*. The data source owner authorizes the connector when they create the data source.\n- For data sources with *Viewer's credentials* , the *effective user* is the report viewer. The report viewer will authorize the connector when they view a report.\n\nBenefits\n--------\n\n- You can ensure data confidentiality.\n- Data access cannot be shared from one user to another.\n- You can ensure users will only be able to see data relevant to them.\n- It becomes easier for your users to create scalable dashboards.\n\nImplementation steps\n--------------------\n\nThere are two steps to enforcing viewer's credentials for your connector:\n\n1. In your connector's manifest, set `dataStudio.forceViewersCredentials` to `true`. See [Manifest reference](/looker-studio/connector/manifest) for details.\n2. Depending on your use case, you can implement your access control logic. Ensure that only the relevant data for the report viewer is returned from the connector. See [Access user identity properties](/looker-studio/connector/user-identity) to understand how your code can access the user identity/email address."]]