Users: getAvailableProductSet

  • 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.

Note:Requiresauthorization.

Deprecated: New integrations cannot use this method and can refer toour newrecommendations.
This method will no longer be accessible byanyone after September 30, 2025.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 nameValueDescription
Path parameters
enterpriseIdstring The ID of the enterprise.
userIdstring The ID of the user.

Authorization

This request requires authorization with the following scope:

Scope
https://www.googleapis.com/auth/androidenterprise

For more information, see theauthentication and authorization page.

Request body

Do not supply a request body with this method.

Response

If successful, this method returns a response body with the following structure:

{  "kind": "androidenterprise#productSet",  "productId": [string  ],  "productSetBehavior":string,  "productVisibility": [    {      "productId":string,      "tracks": [string      ],      "trackIds": [string      ]    }  ]}
Property nameValueDescriptionNotes
productId[]listThe list of product IDs making up the set of products.
productSetBehaviorstringThe 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[]listAdditional 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[].productIdstringThe product ID to make visible to the user. Required for each item in the productVisibility list.
productVisibility[].tracks[]listDeprecated. UsetrackIds instead.
productVisibility[].trackIds[]listGrants the user visibility to the specified product track(s), identified bytrackIds.
kindstring

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-10-31 UTC.