试用 Google Analytics 的 MCP 服务器。从
GitHub 安装,并参阅
公告了解详情。
REST Resource: properties.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} 或 properties/{property}/accessBindings/{accessBinding} 示例:“accounts/100/accessBindings/200”
|
roles[] |
string
要授予父资源的角色列表。 有效值:预定义角色/viewer 预定义角色/analyst 预定义角色/editor 预定义角色/admin 预定义角色/no-cost-data 预定义角色/no-revenue-data 对于用户,如果设置了空的角色列表,此 AccessBinding 将被删除。
|
联合字段 access_target 。要为其设置角色的目标。access_target 只能是下列其中一项: |
user |
string
如果已设置,则为要设置角色的用户的电子邮件地址。格式:“someuser@gmail.com”
|
方法 |
|
创建与某个账号或媒体资源的多个访问权限绑定的相关信息。 |
|
删除多个用户的相关信息与账号或媒体资源相关联。 |
|
获取有关某个账号或媒体资源的多个访问权限绑定的信息。 |
|
更新与某个账号或媒体资源的多项访问权限绑定的相关信息。 |
|
在账号或媒体资源上创建访问权限绑定。 |
|
删除账号或媒体资源的访问权限绑定。 |
|
获取有关访问权限绑定的信息。 |
|
列出账号或媒体资源上的所有访问权限绑定。 |
|
更新对账号或媒体资源的访问权限绑定。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\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. |"]]