Skip to main content

List User Licenses

Retrieve a list of licenseDetails objects for enterprise users. This API returns details for licenses that are directly assigned and those transitively assigned through memberships in licensed groups.

  • Note: This action is supported only for the delegated (OAuth) method.
External Documentation

To learn more, visit the Microsoft Entra ID documentation.

Parameters

ParameterDescription
UserThe user ID or principal name of the user to remove the license from. Leave empty for the authenticated user (me).

Example Output

{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('48d31887-5fad-4d73-a9f5-3c356e68a038')/licenseDetails",
"value": [
{
"id": "3RnS3Gi8m0u_C0ozp5a-NWAn38eBLPdOtXhbU5K1cd8",
"skuId": "c7df2760-2c81-4ef7-b578-5b5392b571df",
"skuPartNumber": "ENTERPRISEPREMIUM",
"servicePlans": [
{
"servicePlanId": "cd31b152-6326-4d1b-ae1b-997b625182e6",
"servicePlanName": "MIP_S_Exchange",
"provisioningStatus": "PendingProvisioning",
"appliesTo": "User"
},
{
"servicePlanId": "8e0c0a52-6a6c-4d40-8370-dd62790dcd70",
"servicePlanName": "THREAT_INTELLIGENCE",
"provisioningStatus": "Success",
"appliesTo": "User"
}
]
}
]
}

Workflow Library Example

List User Licenses with Microsoft Entra Id and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop