ลองใช้เซิร์ฟเวอร์ MCP สำหรับ Google Analytics ติดตั้งจาก
GitHub และดูรายละเอียดเพิ่มเติมได้ที่
ประกาศ
REST Resource: accounts.accessBindings
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ทรัพยากร: AccessBinding
การเชื่อมโยงผู้ใช้กับชุดบทบาท
การแสดง JSON |
{
"name": string,
"roles": [
string
],
// Union field access_target can be only one of the following:
"user": string
// End of list of possible types for union field access_target .
} |
ช่อง |
name |
string
เอาต์พุตเท่านั้น ชื่อทรัพยากรของการเชื่อมโยงนี้ รูปแบบ: accounts/{account}/accessBindings/{accessBinding} หรือพร็อพเพอร์ตี้/{property}/accessBindings/{accessBinding} ตัวอย่างเช่น "accounts/100/accessBindings/200"
|
roles[] |
string
รายการบทบาทที่จะมอบหมายให้กับทรัพยากรระดับบนสุด ค่าที่ถูกต้อง: งานที่กำหนดไว้ล่วงหน้าบทบาท/ผู้ดูที่กำหนดไว้ล่วงหน้าบทบาท/นักวิเคราะห์ที่กำหนดไว้ล่วงหน้าบทบาท/ผู้แก้ไขที่กำหนดไว้ล่วงหน้า/บทบาทที่กำหนดไว้ล่วงหน้า/ผู้ดูแลระบบที่กำหนดไว้ล่วงหน้า/ข้อมูลที่กำหนดไว้ล่วงหน้าบทบาท/ข้อมูลที่ไม่มีค่าใช้จ่าย สำหรับผู้ใช้ หากมีการตั้งค่ารายการบทบาทที่ว่างเปล่า ระบบจะลบ AccessBinding นี้
|
ช่องการรวม access_target เป้าหมายที่จะกำหนดบทบาท access_target ต้องเป็นค่าใดค่าหนึ่งต่อไปนี้ |
user |
string
อีเมลของผู้ใช้ที่จะกำหนดบทบาทให้ หากตั้งค่าไว้ รูปแบบ: "someuser@gmail.com"
|
เมธอด |
|
สร้างข้อมูลเกี่ยวกับการเชื่อมโยงสิทธิ์เข้าถึงหลายรายการกับบัญชีหรือพร็อพเพอร์ตี้ |
|
ลบข้อมูลเกี่ยวกับผู้ใช้หลายคน ลิงก์ไปยังบัญชีหรือพร็อพเพอร์ตี้ |
|
รับข้อมูลเกี่ยวกับการเชื่อมโยงสิทธิ์เข้าถึงหลายรายการกับบัญชีหรือพร็อพเพอร์ตี้ |
|
อัปเดตข้อมูลเกี่ยวกับการเชื่อมโยงสิทธิ์เข้าถึงหลายรายการกับบัญชีหรือพร็อพเพอร์ตี้ |
|
สร้างการเชื่อมโยงสิทธิ์เข้าถึงในบัญชีหรือพร็อพเพอร์ตี้ |
|
ลบการเชื่อมโยงสิทธิ์เข้าถึงในบัญชีหรือพร็อพเพอร์ตี้ |
|
รับข้อมูลเกี่ยวกับการเชื่อมโยงสิทธิ์เข้าถึง |
|
แสดงการเชื่อมโยงสิทธิ์เข้าถึงทั้งหมดในบัญชีหรือพร็อพเพอร์ตี้ |
|
อัปเดตการเชื่อมโยงสิทธิ์เข้าถึงในบัญชีหรือพร็อพเพอร์ตี้ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eAccessBinding is a resource that links a user to specific roles within Google Analytics.\u003c/p\u003e\n"],["\u003cp\u003eIt defines user access by assigning roles like viewer, analyst, editor, or admin.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage AccessBindings through various methods including creating, deleting, updating, and listing them.\u003c/p\u003e\n"],["\u003cp\u003eThese methods allow for batch operations, enabling efficient management of user access across accounts and properties.\u003c/p\u003e\n"]]],["AccessBinding links users to roles, defined by a `name`, a list of `roles`, and a `user` email. Roles include viewer, analyst, editor, admin, no-cost-data, and no-revenue-data. The `name` is a resource identifier. Multiple AccessBindings can be managed via batch operations for creating, deleting, getting, and updating. Singular access binding management includes create, delete, get, list, and patch options. Deleting an access binding can also be done by setting an empty roles list.\n"],null,["# REST Resource: accounts.accessBindings\n\n- [Resource: AccessBinding](#AccessBinding)\n - [JSON representation](#AccessBinding.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: AccessBinding\n-----------------------\n\nA binding of a user to a set of roles.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"roles\": [ string ], // Union field `access_target` can be only one of the following: \"user\": string // End of list of possible types for union field `access_target`. } ``` |\n\n| Fields ||\n|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. Resource name of this binding. Format: accounts/{account}/accessBindings/{accessBinding} or properties/{property}/accessBindings/{accessBinding} Example: \"accounts/100/accessBindings/200\" |\n| `roles[]` | `string` A list of roles for to grant to the parent resource. Valid values: predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor predefinedRoles/admin predefinedRoles/no-cost-data predefinedRoles/no-revenue-data For users, if an empty list of roles is set, this AccessBinding will be deleted. |\n| Union field `access_target`. The target for which to set roles for. `access_target` can be only one of the following: ||\n| `user` | `string` If set, the email address of the user to set roles for. Format: \"someuser@gmail.com\" |\n\n| Methods ------- ||\n|----------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|\n| ### [batchCreate](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts.accessBindings/batchCreate) | Creates information about multiple access bindings to an account or property. |\n| ### [batchDelete](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts.accessBindings/batchDelete) | Deletes information about multiple users' links to an account or property. |\n| ### [batchGet](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts.accessBindings/batchGet) | Gets information about multiple access bindings to an account or property. |\n| ### [batchUpdate](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts.accessBindings/batchUpdate) | Updates information about multiple access bindings to an account or property. |\n| ### [create](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts.accessBindings/create) | Creates an access binding on an account or property. |\n| ### [delete](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts.accessBindings/delete) | Deletes an access binding on an account or property. |\n| ### [get](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts.accessBindings/get) | Gets information about an access binding. |\n| ### [list](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts.accessBindings/list) | Lists all access bindings on an account or property. |\n| ### [patch](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts.accessBindings/patch) | Updates an access binding on an account or property. |"]]