重要資訊:我們目前不接受新的 Play EMM API 註冊。
瞭解詳情。
Users: setAvailableProductSet
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
修改使用者有權存取的產品組合 (稱為「已加入許可清單」
whitelisted的產品)。只有
已核准的產品或先前已核准 (已撤銷核准的產品) 才能加入許可清單。
要求
HTTP 要求
PUT https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/users/userId/availableProductSet
參數
參數名稱 |
價值 |
說明 |
路徑參數 |
enterpriseId |
string |
企業的 ID。
|
userId |
string |
使用者的 ID。 |
授權
此要求需要具有下列範圍的授權:
內容範圍 |
https://www.googleapis.com/auth/androidenterprise |
詳情請參閱「驗證與授權」網頁。
要求主體
在要求主體中,提供具有以下結構的資料:
{
"kind": "androidenterprise#productSet",
"productId": [
string
],
"productSetBehavior": string,
"productVisibility": [
{
"productId": string,
"tracks": [
string
],
"trackIds": [
string
]
}
]
}
資源名稱 |
價值 |
說明 |
附註 |
productId[] |
list |
構成產品組合的產品 ID 清單。 |
|
productSetBehavior |
string |
用來解讀這個產品集的內容。請勿傳送「未知」,如果收到這類訊息,系統就會予以忽略。「許可清單」代表使用者有權存取產品集。「包含全部」代表所有產品都可供存取,包括已核准的產品、已撤銷核准的產品,以及尚未獲得核准的產品。「all 已核准」代表使用者有權存取企業核准的所有產品。如果值為「allApproval」或「includeAll」,系統會忽略 productId 欄位。如未提供任何值,系統會解讀為「白名單」,確保回溯相容性。進一步的「allApproval」或「includeAll」無法自動顯示 Android 應用程式的「Alpha 版」或「Beta 版」測試群組。請使用「ProductVisibility」來為每位使用者啟用「Alpha 版」或「Beta 版」測試群組。
可接受的值為:
- "
allApproved "
- "
includeAll "
- "
whitelist "
|
|
productVisibility[] |
list |
構成產品集的其他產品 ID 清單。有別於 productID 陣列,這份清單可以指定使用者可以看到產品的哪些測試群組 (Alpha 版、Beta 版、正式版)。詳情請參閱「ProductVisibility」及其欄位。請勿在這裡和 productId 陣列中指定相同的產品 ID,否則會發生錯誤。 |
|
productVisibility[].productId |
string |
要向使用者顯示的產品 ID。產品瀏覽權限清單中的每個商品都必須是必填屬性。 |
|
productVisibility[].tracks[] |
list |
已淘汰,請改用 trackIds 。 |
|
productVisibility[].trackIds[] |
list |
可授予使用者瀏覽 trackIds 識別的指定產品測試群組。 |
|
kind |
string |
|
|
回覆
如果成功的話,這個方法會傳回回應內文,其結構如下:
{
"kind": "androidenterprise#productSet",
"productId": [
string
],
"productSetBehavior": string,
"productVisibility": [
{
"productId": string,
"tracks": [
string
],
"trackIds": [
string
]
}
]
}
屬性名稱 |
價值 |
說明 |
附註 |
productId[] |
list |
構成產品組合的產品 ID 清單。 |
|
productSetBehavior |
string |
用來解讀這個產品集的內容。請勿傳送「未知」,如果收到這類訊息,系統就會予以忽略。「許可清單」代表使用者有權存取產品集。「包含全部」代表所有產品都可供存取,包括已核准的產品、已撤銷核准的產品,以及尚未獲得核准的產品。「all 已核准」代表使用者有權存取企業核准的所有產品。如果值為「allApproval」或「includeAll」,系統會忽略 productId 欄位。如未提供任何值,系統會解讀為「白名單」,確保回溯相容性。進一步的「allApproval」或「includeAll」無法自動顯示 Android 應用程式的「Alpha 版」或「Beta 版」測試群組。請使用「ProductVisibility」來為每位使用者啟用「Alpha 版」或「Beta 版」測試群組。
可接受的值為:
- "
allApproved "
- "
includeAll "
- "
whitelist "
|
|
productVisibility[] |
list |
構成產品集的其他產品 ID 清單。有別於 productID 陣列,這份清單可以指定使用者可以看到產品的哪些測試群組 (Alpha 版、Beta 版、正式版)。詳情請參閱「ProductVisibility」及其欄位。請勿在這裡和 productId 陣列中指定相同的產品 ID,否則會發生錯誤。 |
|
productVisibility[].productId |
string |
要向使用者顯示的產品 ID。產品瀏覽權限清單中的每個商品都必須是必填屬性。 |
|
productVisibility[].tracks[] |
list |
已淘汰,請改用 trackIds 。 |
|
productVisibility[].trackIds[] |
list |
可授予使用者瀏覽 trackIds 識別的指定產品測試群組。 |
|
kind |
string |
|
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-06-25 (世界標準時間)。
[{
"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":"其他"
}]