Webproperty User Links

webpropertyUserLinks 集合是一組 entityUserLink 資源,每個用來說明單一使用者的資源權限。

如需本資源的方法清單,請見本頁結尾。

資源表示法

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 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 此資料檢視 (設定檔) 所屬網站資源的內部編號。
entity.profileRef.kind string Analytics (分析) 資料檢視 (設定檔) 參考資料。
entity.profileRef.name string 這個資料檢視 (設定檔) 的名稱。
entity.profileRef.webPropertyId string 這個資料檢視 (設定檔) 所屬的網站資源 ID (格式為 UA-XXXXX-YY)。
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 Analytics (分析) 網站資源參考資料。
entity.webPropertyRef.name string 此網站資源的名稱。
id string 實體使用者連結 ID
kind string 實體使用者連結的資源類型。
permissions object 使用者對這個實體擁有的權限。
permissions.effective[] list 有效權限代表使用者對這個實體具備的所有權限。包括任何暗示的權限 (例如「編輯」隱含「檢視」) 或繼承父系實體的權限。有效權限為唯讀狀態。
permissions.local[] list 這個這個層級使用者獲得的權限。不包含任何默示或沿用的權限。本機權限可以修改。
userRef nested object 使用者參照。
userRef.email string 此使用者的電子郵件 ID。
userRef.id string User ID。
userRef.kind string 使用者參照連結的資源類型。

方法

刪除
從指定網站資源中移除使用者。
插入
在指定網站資源中新增使用者。
list
列出指定網站資源的網站資源使用者連結。
更新
更新指定網站資源的現有使用者權限。