Hãy thử máy chủ MCP cho Google Analytics. Cài đặt từ
GitHub và xem
thông báo để biết thêm thông tin chi tiết.
REST Resource: properties.accessBindings
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tài nguyên: AccessBinding
Mối liên kết giữa người dùng với một nhóm vai trò.
Biểu diễn dưới dạng 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 .
} |
Trường |
name |
string
Chỉ có đầu ra. Tên tài nguyên của liên kết này. Định dạng: accounts/{account}/accessBindings/{accessBinding} hoặc thuộc tính/{property}/accessBindings/{accessBinding} Ví dụ: "accounts/100/accessBindings/200"
|
roles[] |
string
Danh sách vai trò được cấp cho tài nguyên mẹ. Giá trị hợp lệ: vai trò được xác định trước/người xem vai trò được xác định trước/vai trò được xác định trước/người chỉnh sửa vai trò được xác định trước/vai trò được xác định trước của quản trị viên/vai trò không mất phí được xác định trước vai trò/dữ liệu không có doanh thu Đối với người dùng, nếu bạn đặt một danh sách vai trò trống, AccessBinding này sẽ bị xoá.
|
Trường kết hợp access_target . Mục tiêu mà bạn cần đặt vai trò. access_target chỉ có thể là một trong những trạng thái sau đây: |
user |
string
Nếu được đặt, thì địa chỉ email của người dùng để đặt vai trò. Định dạng: "someuser@gmail.com"
|
Phương thức |
|
Tạo thông tin về nhiều liên kết quyền truy cập với một tài khoản hoặc tài sản. |
|
Xoá thông tin về tài khoản của nhiều người dùng với một tài khoản hoặc tài sản. |
|
Nhận thông tin về nhiều mối liên kết quyền truy cập với một tài khoản hoặc tài sản. |
|
Cập nhật thông tin về nhiều mối liên kết quyền truy cập với một tài khoản hoặc tài sản. |
|
Tạo liên kết quyền truy cập trên một tài khoản hoặc tài sản. |
|
Xoá liên kết quyền truy cập trên một tài khoản hoặc tài sản. |
|
Lấy thông tin về liên kết truy cập. |
|
Liệt kê tất cả các liên kết quyền truy cập trên một tài khoản hoặc tài sản. |
|
Cập nhật liên kết quyền truy cập trên một tài khoản hoặc tài sản. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003eAccessBinding is a resource that binds a user to a set of roles within Google Analytics.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage AccessBindings through various methods like creating, deleting, updating, and listing them for accounts or properties.\u003c/p\u003e\n"],["\u003cp\u003eAccessBindings use a JSON representation to define the user, their roles, and the target resource (account or property).\u003c/p\u003e\n"],["\u003cp\u003eRoles granted via AccessBindings can include predefined options such as viewer, analyst, editor, admin, and more.\u003c/p\u003e\n"],["\u003cp\u003eAvailable methods for interacting with AccessBindings include batch operations (create, delete, get, update) and individual operations (create, delete, get, list, patch).\u003c/p\u003e\n"]]],["AccessBindings link users to roles within accounts or properties. Key fields include `name` (resource identifier), `roles[]` (list of granted roles like viewer, editor, admin), and `user` (target user's email). Available roles include predefined options. The union field `access_target` specifies the target for role assignments, currently only supporting the `user` field. Several methods are provided for managing access bindings, including creating, deleting, getting, listing, updating single or multiple user's bindings.\n"],null,["# REST Resource: properties.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/properties.accessBindings/batchCreate) | Creates information about multiple access bindings to an account or property. |\n| ### [batchDelete](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.accessBindings/batchDelete) | Deletes information about multiple users' links to an account or property. |\n| ### [batchGet](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.accessBindings/batchGet) | Gets information about multiple access bindings to an account or property. |\n| ### [batchUpdate](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.accessBindings/batchUpdate) | Updates information about multiple access bindings to an account or property. |\n| ### [create](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.accessBindings/create) | Creates an access binding on an account or property. |\n| ### [delete](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.accessBindings/delete) | Deletes an access binding on an account or property. |\n| ### [get](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.accessBindings/get) | Gets information about an access binding. |\n| ### [list](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.accessBindings/list) | Lists all access bindings on an account or property. |\n| ### [patch](/analytics/devguides/config/admin/v1/rest/v1alpha/properties.accessBindings/patch) | Updates an access binding on an account or property. |"]]