试用 Google Analytics 的 MCP 服务器。从
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} 或 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 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. |"]]