|
| 1 | +--- |
| 2 | +title: "Get azureADPremiumLicenseInsight" |
| 3 | +description: "Get the premium license utilization insight for the tenant." |
| 4 | +author: "sanchariroy" |
| 5 | +ms.date: 03/13/2026 |
| 6 | +ms.localizationpriority: medium |
| 7 | +ms.subservice: "entra-monitoring-health" |
| 8 | +doc_type: apiPageType |
| 9 | +--- |
| 10 | + |
| 11 | +# Get azureADPremiumLicenseInsight |
| 12 | + |
| 13 | +Namespace: microsoft.graph |
| 14 | + |
| 15 | +[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)] |
| 16 | + |
| 17 | +Get the premium license utilization insight for the tenant. This API returns data about how many premium licenses are entitled and how the associated P1 and P2 features are being used. The calling tenant must have at least one Microsoft Entra ID P1 or P2 license. Tenants without a premium license receive a `403 Forbidden` response with the `missingLicense` error code. |
| 18 | + |
| 19 | +[!INCLUDE [national-cloud-support](../../includes/global-only.md)] |
| 20 | + |
| 21 | +## Permissions |
| 22 | + |
| 23 | +Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions [only if your app requires it](/graph/permissions-overview#best-practices-for-using-microsoft-graph-permissions). For details about delegated and application permissions, see [Permission types](/graph/permissions-overview#permission-types). To learn more about these permissions, see the [permissions reference](/graph/permissions-reference). |
| 24 | + |
| 25 | +<!-- { "blockType": "permissions", "name": "azureadpremiumlicenseinsight_get" } --> |
| 26 | +[!INCLUDE [permissions-table](../includes/permissions/azureadpremiumlicenseinsight-get-permissions.md)] |
| 27 | + |
| 28 | +> [!IMPORTANT] |
| 29 | +> In delegated scenarios with work or school accounts, the signed-in user must be assigned a supported [Microsoft Entra role](/entra/identity/role-based-access-control/permissions-reference?toc=%2Fgraph%2Ftoc.json) or a custom role with a supported role permission. The following least privileged roles are supported for this operation. |
| 30 | +> - Application Administrator |
| 31 | +> - Cloud Application Administrator |
| 32 | +> - Global Reader |
| 33 | +> - Reports Reader |
| 34 | +> - Security Administrator |
| 35 | +> - Security Operator |
| 36 | +> - Security Reader |
| 37 | +
|
| 38 | +## HTTP request |
| 39 | + |
| 40 | +<!-- { |
| 41 | + "blockType": "ignored" |
| 42 | +} |
| 43 | +--> |
| 44 | +``` http |
| 45 | +GET /reports/azureADPremiumLicenseInsight |
| 46 | +``` |
| 47 | + |
| 48 | +## Optional query parameters |
| 49 | + |
| 50 | +This method supports the `$select` OData query parameter to help customize the response. For general information, see [OData query parameters](/graph/query-parameters). |
| 51 | + |
| 52 | +## Request headers |
| 53 | + |
| 54 | +|Name|Description| |
| 55 | +|:---|:---| |
| 56 | +|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).| |
| 57 | + |
| 58 | +## Request body |
| 59 | + |
| 60 | +Don't supply a request body for this method. |
| 61 | + |
| 62 | +## Response |
| 63 | + |
| 64 | +If successful, this method returns a `200 OK` response code and an [azureADPremiumLicenseInsight](../resources/azureadpremiumlicenseinsight.md) object in the response body. |
| 65 | + |
| 66 | +## Examples |
| 67 | + |
| 68 | +### Request |
| 69 | + |
| 70 | +The following example shows a request. |
| 71 | +<!-- { |
| 72 | + "blockType": "request", |
| 73 | + "name": "get_azureadpremiumlicenseinsight" |
| 74 | +} |
| 75 | +--> |
| 76 | +```msgraph-interactive |
| 77 | +GET https://graph.microsoft.com/beta/reports/azureADPremiumLicenseInsight |
| 78 | +``` |
| 79 | + |
| 80 | + |
| 81 | +### Response |
| 82 | + |
| 83 | +The following example shows the response. |
| 84 | +>**Note:** The response object shown here might be shortened for readability. |
| 85 | +<!-- { |
| 86 | + "blockType": "response", |
| 87 | + "truncated": true, |
| 88 | + "@odata.type": "microsoft.graph.azureADPremiumLicenseInsight" |
| 89 | +} |
| 90 | +--> |
| 91 | +``` http |
| 92 | +HTTP/1.1 200 OK |
| 93 | +Content-Type: application/json |
| 94 | +
|
| 95 | +{ |
| 96 | + "id": "00000000-0000-0000-0000-000000000000", |
| 97 | + "entitledP1LicenseCount": 100, |
| 98 | + "entitledP2LicenseCount": 50, |
| 99 | + "entitledTotalLicenseCount": 150, |
| 100 | + "p1FeatureUtilizations": { |
| 101 | + "conditionalAccess": { |
| 102 | + "userCount": 85 |
| 103 | + }, |
| 104 | + "conditionalAccessGuestUsers": { |
| 105 | + "userCount": 12 |
| 106 | + } |
| 107 | + }, |
| 108 | + "p2FeatureUtilizations": { |
| 109 | + "riskBasedConditionalAccess": { |
| 110 | + "userCount": 30 |
| 111 | + }, |
| 112 | + "riskBasedConditionalAccessGuestUsers": { |
| 113 | + "userCount": 5 |
| 114 | + } |
| 115 | + }, |
| 116 | + "privateAccessFeatureUtilizations": { |
| 117 | + "privateAccess": { |
| 118 | + "userCount": 20 |
| 119 | + } |
| 120 | + }, |
| 121 | + "internetAccessFeatureUtilizations": { |
| 122 | + "internetAccess": { |
| 123 | + "userCount": 45 |
| 124 | + }, |
| 125 | + "internetAccessM365": { |
| 126 | + "userCount": 38 |
| 127 | + } |
| 128 | + } |
| 129 | +} |
| 130 | +``` |
0 commit comments