試用 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
授予父項資源的角色清單。 有效值:預先定義角色/檢視者預先定義角色/分析預先定義角色/編輯者預先定義角色/admin 預先定義的角色/no-cost-data 預先定義的角色/no-revenue-data 如果使用者設定了空白的角色清單,這個 AccessBinding 將遭到刪除。
|
聯集欄位 access_target 。要為哪個目標設定角色。access_target 只能是下列其中一項: |
user |
string
如已設定,代表要設定角色的使用者電子郵件地址。格式:「someuser@gmail.com」
|
方法 |
|
為帳戶或資源建立多個存取權繫結的相關資訊。 |
|
刪除多位使用者的相關資訊連結至帳戶或資源 |
|
取得帳戶或資源的多個存取權繫結資訊。 |
|
更新帳戶或資源的多個存取權繫結資訊。 |
|
針對帳戶或資源建立存取權繫結。 |
|
刪除帳戶或資源的存取權繫結。 |
|
取得存取權繫結的相關資訊。 |
|
列出帳戶或資源的所有存取權繫結。 |
|
更新帳戶或資源的存取權繫結。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間: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. |"]]