Stay organized with collectionsSave and categorize content based on your preferences.
Modifies the set of products that a user is entitled to access (referred to
aswhitelistedproducts). Only products that areapprovedor products that were previously approved (products with revoked approval)
can be whitelisted.
Request
HTTP request
PUT https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/users/userId/availableProductSet
Parameters
Parameter name
Value
Description
Path parameters
enterpriseId
string
The ID of the enterprise.
userId
string
The ID of the user.
Authorization
This request requires authorization with the following scope:
The list of product IDs making up the set of products.
productSetBehavior
string
The interpretation of this product set. "unknown" should never be sent and is ignored if received. "whitelist" means that the user is entitled to access the product set. "includeAll" means that all products are accessible, including products that are approved, products with revoked approval, and products that have never been approved. "allApproved" means that the user is entitled to access all products that are approved for the enterprise. If the value is "allApproved" or "includeAll", the productId field is ignored. If no value is provided, it is interpreted as "whitelist" for backwards compatibility. Further "allApproved" or "includeAll" does not enable automatic visibility of "alpha" or "beta" tracks for Android app. Use ProductVisibility to enable "alpha" or "beta" tracks per user.
Acceptable values are:
"allApproved"
"includeAll"
"whitelist"
productVisibility[]
list
Additional list of product IDs making up the product set. Unlike the productID array, in this list It's possible to specify which tracks (alpha, beta, production) of a product are visible to the user. See ProductVisibility and its fields for more information. Specifying the same product ID both here and in the productId array is not allowed and it will result in an error.
productVisibility[].productId
string
The product ID to make visible to the user. Required for each item in the productVisibility list.
productVisibility[].tracks[]
list
Deprecated. UsetrackIdsinstead.
productVisibility[].trackIds[]
list
Grants the user visibility to the specified product track(s), identified bytrackIds.
kind
string
Response
If successful, this method returns a response body with the following structure:
The list of product IDs making up the set of products.
productSetBehavior
string
The interpretation of this product set. "unknown" should never be sent and is ignored if received. "whitelist" means that the user is entitled to access the product set. "includeAll" means that all products are accessible, including products that are approved, products with revoked approval, and products that have never been approved. "allApproved" means that the user is entitled to access all products that are approved for the enterprise. If the value is "allApproved" or "includeAll", the productId field is ignored. If no value is provided, it is interpreted as "whitelist" for backwards compatibility. Further "allApproved" or "includeAll" does not enable automatic visibility of "alpha" or "beta" tracks for Android app. Use ProductVisibility to enable "alpha" or "beta" tracks per user.
Acceptable values are:
"allApproved"
"includeAll"
"whitelist"
productVisibility[]
list
Additional list of product IDs making up the product set. Unlike the productID array, in this list It's possible to specify which tracks (alpha, beta, production) of a product are visible to the user. See ProductVisibility and its fields for more information. Specifying the same product ID both here and in the productId array is not allowed and it will result in an error.
productVisibility[].productId
string
The product ID to make visible to the user. Required for each item in the productVisibility list.
productVisibility[].tracks[]
list
Deprecated. UsetrackIdsinstead.
productVisibility[].trackIds[]
list
Grants the user visibility to the specified product track(s), identified bytrackIds.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003eThis method modifies the products a user can access, including whitelisting approved or previously approved products.\u003c/p\u003e\n"],["\u003cp\u003eIt's deprecated and will be inaccessible after September 30, 2025; new integrations should refer to recommended alternatives.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify product visibility by track (alpha, beta, production) using \u003ccode\u003eproductVisibility\u003c/code\u003e and \u003ccode\u003etrackIds\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidenterprise\u003c/code\u003e scope.\u003c/p\u003e\n"]]],[],null,[]]