webpropertyUserLinks 集合是一组 entityUserLink 资源,其中每个资源都描述了单个用户的媒体资源权限。
有关此类资源的方法列表,请参阅本页面的结尾部分。
资源表示形式
用于 Google Analytics(分析)“实体-用户关联”的 JSON 模板。将返回用户对某个实体的权限。
{ "id": string, "kind": "analytics#entityUserLink", "selfLink": string, "selfLink": string, "selfLink": string, "entity": { "accountRef": { "id": string, "kind": "analytics#accountRef", "href": string, "name": string }, "webPropertyRef": { "id": string, "kind": "analytics#webPropertyRef", "href": string, "accountId": string, "internalWebPropertyId": string, "name": string }, "profileRef": { "id": string, "kind": "analytics#profileRef", "href": string, "accountId": string, "webPropertyId": string, "internalWebPropertyId": string, "name": string } }, "userRef": { "kind": "analytics#userRef", "id": string, "email": string }, "permissions": { "effective": [ string ], "local": [ string ] } }
属性名称 | 值 | 说明 | 备注 |
---|---|---|---|
entity |
object |
用于此关联的实体。它可以是某个账号、网络媒体资源或数据视图(配置文件)。 | |
entity.accountRef |
nested object |
用于此关联的账号。 | |
entity.accountRef.href |
string |
此账号的链接。 | |
entity.accountRef.id |
string |
账号 ID。 | |
entity.accountRef.kind |
string |
Google Analytics(分析)账号参考。 | |
entity.accountRef.name |
string |
账号名称。 | |
entity.profileRef |
nested object |
用于此关联的数据视图(配置文件)。 | |
entity.profileRef.accountId |
string |
此数据视图(配置文件)所属的账号 ID。 | |
entity.profileRef.href |
string |
此数据视图(配置文件)的链接。 | |
entity.profileRef.id |
string |
数据视图(配置文件)ID。 | |
entity.profileRef.internalWebPropertyId |
string |
此数据视图(配置文件)所属的网络媒体资源的内部 ID。 | |
entity.profileRef.kind |
string |
Google Analytics(分析)数据视图(配置文件)参考。 | |
entity.profileRef.name |
string |
此数据视图(配置文件)的名称。 | |
entity.profileRef.webPropertyId |
string |
此数据视图(配置文件)所属的格式为 UA-XXXXX-YY 的网络媒体资源 ID。 | |
entity.webPropertyRef |
nested object |
用于此关联的网络媒体资源。 | |
entity.webPropertyRef.accountId |
string |
此网络媒体资源所属的账号 ID。 | |
entity.webPropertyRef.href |
string |
此网络媒体资源的链接。 | |
entity.webPropertyRef.id |
string |
格式为 UA-XXXXX-YY 的网络媒体资源 ID。 | |
entity.webPropertyRef.internalWebPropertyId |
string |
此网络媒体资源的内部 ID。 | |
entity.webPropertyRef.kind |
string |
Google Analytics(分析)网络媒体资源参考。 | |
entity.webPropertyRef.name |
string |
此网络媒体资源的名称。 | |
id |
string |
实体用户关联 ID | |
kind |
string |
实体用户关联的资源类型。 | |
permissions |
object |
用户对此实体的权限。 | |
permissions.effective[] |
list |
有效权限代表用户对此实体的所有权限。包括任何隐含权限(例如,EDIT 暗示 VIEW)或从父实体继承的权限。有效权限是只读的。 | |
permissions.local[] |
list |
仅在本层级向用户分配的权限。不包括任何隐含或继承的权限。本地权限是可以修改的。 | |
selfLink |
string |
此资源的自链接。 | |
userRef |
nested object |
用户参考。 | |
userRef.email |
string |
此用户的电子邮件 ID。 | |
userRef.id |
string |
用户 ID。 | |
userRef.kind |
string |
用户参考链接的资源类型。 |