Modifies the set of products that a user is entitled to access (referred to
as whitelisted products). Only products that are
approved
or 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. Use trackIds instead.
productVisibility[].trackIds[]
list
Grants the user visibility to the specified product track(s), identified by trackIds.
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. Use trackIds instead.
productVisibility[].trackIds[]
list
Grants the user visibility to the specified product track(s), identified by trackIds.
[null,null,["Last updated 2024-10-31 UTC."],[[["This method modifies the products a user can access, including whitelisting approved or previously approved products."],["It's deprecated and will be inaccessible after September 30, 2025; new integrations should refer to recommended alternatives."],["You can specify product visibility by track (alpha, beta, production) using `productVisibility` and `trackIds`."],["The request requires authorization with the `https://www.googleapis.com/auth/androidenterprise` scope."]]],[]]