> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

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

<Note>
  External Documentation

  To learn more, visit the [Microsoft Entra ID documentation](https://learn.microsoft.com/en-us/graph/api/user-list-licensedetails?view=graph-rest-1.0\&tabs=http).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter | Description                                                                                                          |
  | --------- | -------------------------------------------------------------------------------------------------------------------- |
  | User      | The user ID or principal name of the user to remove the license from. Leave empty for the authenticated user (`me`). |
</div>

## Example Output

```json theme={"dark"}
{
	"@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](https://library.blinkops.com/workflows/list-user-licenses-with-microsoft-entra-id-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-user-licenses-with-microsoft-entra-id-and-send-results-via-email/canvas" />
</div>
