Users: getAvailableProductSetStay organized with collectionsSave and categorize content based on your preferences.
AI-generated Key Takeaways
This method retrieves the set of products a user is entitled to access.
This method is deprecated and new integrations should use recommended alternatives.
This method requires authorization and will no longer be accessible after September 30, 2025.
The request uses a GET HTTP method with the specified URL structure and includes enterpriseId and userId as path parameters.
The response, if successful, returns a JSON object containing information about the product set, including product IDs, product set behavior, and product visibility.
Retrieves the set of products a user is entitled to access.
Request
HTTP request
GET 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.
[[["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."],[],[]]