Generate Approval Url

Generates a URL that can be rendered in an iframe to display the permissions (if any) of a product

3 variables
1 variables

Generates a URL that can be rendered in an iframe to display the permissions (if any) of a product. An enterprise admin must view these permissions and accept them on behalf of their organization in order to approve that product.

Admins should accept the displayed permissions by interacting with a separate UI element in the EMM console, which in turn should trigger the use of this URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to approve the product. This URL can only be used to display permissions for up to 1 day

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 3 input parameters

  = Parameter name
  = Format

enterpriseId STRING Required

The ID of the enterprise

productId STRING Required

The ID of the product

languageCode STRING

The BCP 47 language code used for permission names and descriptions in the returned iframe, for instance "en-US"

Output

This building block provides 1 output parameters

  = Parameter name
  = Format

url STRING

A URL that can be rendered in an iframe to display the permissions (if any) of a product. This URL can be used to approve the product only once and only within 24 hours of being generated, using the Products.approve call. If the product is currently unapproved and has no permissions, this URL will point to an empty page. If the product is currently approved, a URL will only be generated if that product has added permissions since it was last approved, and the URL will only display those new permissions that have not yet been accepted