Users: setAvailableProductSetStay organized with collectionsSave and categorize content based on your preferences.
Page Summary
This method is deprecated and will not be accessible after September 30, 2025; new integrations should refer to the recommended alternatives.
This method modifies the set of approved or previously approved products a user is entitled to access.
The request requires authorization and includes parameters forenterpriseIdanduserId.
The request body allows specifying product IDs, setting product entitlement behavior, and controlling visibility for specific product tracks usingtrackIds.
The response body has the same structure as the request body, detailing the resulting product set for the user.
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."],[],[]]