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"
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["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,[]]