سرور MCP را برای Google Analytics امتحان کنید. از
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 فقط خروجی نام منبع این اتصال. قالب: حسابها/{account}/accessBindings/{accessBinding} یا خواص/{property}/accessBindings/{accessBinding} مثال: "accounts/100/accessBindings/200" |
roles[] | string فهرستی از نقشهایی که باید به منبع اصلی اعطا شود. مقادیر معتبر: نقشهای از پیش تعریف شده/نقشهای از پیش تعریف شده بیننده/نقشهای از پیش تعریف شده تحلیلگر/نقشهای از پیش تعریف شده ویرایشگر/نقشهای از پیش تعریف شده توسط مدیر/رولهای از پیش تعیین شده بدون دادههای هزینهای/دادههای بدون درآمد برای کاربران، اگر یک لیست خالی از نقش ها تنظیم شود، این AccessBinding حذف خواهد شد. |
فیلد اتحادیه access_target . هدفی که برای آن نقش تعیین شود. access_target می تواند تنها یکی از موارد زیر باشد: |
user | string در صورت تنظیم، آدرس ایمیل کاربر برای تعیین نقشها. قالب: "someuser@gmail.com" |
روش ها |
---|
| اطلاعاتی درباره اتصالات دسترسی چندگانه به یک حساب یا دارایی ایجاد می کند. |
| اطلاعات مربوط به پیوندهای چند کاربر به یک حساب یا دارایی را حذف می کند. |
| اطلاعاتی در مورد اتصالات دسترسی چندگانه به یک حساب یا دارایی دریافت می کند. |
| اطلاعات مربوط به اتصالات دسترسی چندگانه به یک حساب یا دارایی را به روز می کند. |
| اتصال دسترسی به حساب یا ویژگی ایجاد می کند. |
| اتصال دسترسی به حساب یا دارایی را حذف می کند. |
| اطلاعات مربوط به یک اتصال دسترسی را دریافت می کند. |
| همه اتصالات دسترسی در یک حساب یا دارایی را فهرست می کند. |
| اتصال دسترسی به حساب یا دارایی را به روز می کند. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\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. |"]]