User Permissions
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源表示法
代表使用者對帳戶及其容器的權限。
{
"path": string,
"accountId": string,
"emailAddress": string,
"accountAccess": {
"permission": string
},
"containerAccess": [
{
"containerId": string,
"permission": string
}
]
}
資源名稱 |
值 |
說明 |
附註 |
accountAccess |
nested object |
GTM 帳戶存取權限。 |
|
accountAccess.permission |
string |
使用者是否擁有帳戶的存取權、使用者存取權或管理員存取權。
可接受的值為:
- "
accountPermissionUnspecified "
- "
admin "
- "
noAccess "
- "
user "
|
|
accountId |
string |
帳戶 ID 可用來識別 GTM 帳戶。 |
|
containerAccess[] |
list |
GTM 容器存取權限。 |
|
containerAccess[].containerId |
string |
GTM 容器 ID。 |
|
containerAccess[].permission |
string |
容器權限清單。
可接受的值為:
- "
approve "
- "
containerPermissionUnspecified "
- "
edit "
- "
noAccess "
- "
publish "
- "
read "
|
|
emailAddress |
string |
使用者的電子郵件地址。 |
|
path |
string |
GTM UserPermission 的 API 相對路徑。 |
|
方法
- 建立
- 建立使用者的帳戶和容器存取權。
- 刪除
- 從帳戶中移除使用者,撤銷對方對該帳戶及其所有容器的存取權。
- 取得
- 取得使用者的帳戶和容器存取權。
- list
- 列出具有帳戶存取權的所有使用者,以及授予每個帳戶的「帳戶」及「容器」使用者存取權。
- 更新
- 更新使用者的帳戶和容器存取權。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-12-01 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]