Set Available Product Set

Modifies the set of products that a user is entitled to access (referred to as whitelisted products)

9 variables
7 variables

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

Authorization

To use this building block you will have to grant access to at least one of the following scopes:

  • Manage corporate Android devices

Input

This building block consumes 9 input parameters

  = Parameter name
  = Format

enterpriseId STRING Required

The ID of the enterprise

userId STRING Required

The ID of the user

kind STRING

Identifies what kind of resource this is. Value: the fixed string "androidenterprise#productSet"

productId[] STRING

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

productVisibility[] OBJECT

A product to be made visible to a user

productVisibility[].productId STRING

The product ID to make visible to the user. Required for each item in the productVisibility list

productVisibility[].trackIds[] STRING

productVisibility[].tracks[] STRING

Output

This building block provides 7 output parameters

  = Parameter name
  = Format

kind STRING

Identifies what kind of resource this is. Value: the fixed string "androidenterprise#productSet"

productId[] STRING

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

productVisibility[] OBJECT

A product to be made visible to a user

productVisibility[].productId STRING

The product ID to make visible to the user. Required for each item in the productVisibility list

productVisibility[].trackIds[] STRING

productVisibility[].tracks[] STRING