配置文件用户关联

profileUserLinks 集合是一组 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 仅在本层级向用户分配的权限。不包括任何隐含或继承的权限。本地权限是可以修改的。
userRef nested object 用户参考。
userRef.email string 此用户的电子邮件 ID。
userRef.id string 用户 ID。
userRef.kind string 用户参考链接的资源类型。

方法

delete
将用户从给定的数据视图(配置文件)中移除。
insert
将新用户添加到给定的数据视图(配置文件)。
list
列出给定数据视图(配置文件)的配置文件-用户关联。
update
更新某个现有用户对于给定数据视图(配置文件)的权限。