Identify which Microsoft 365 licenses and service plans are assigned to a specific user.
Complexity: Beginner. Impact: read-only + licensing + help-desk + user-lookup + low-risk.
Why use this workflow
End users frequently ask IT which Microsoft 365 plan they are on, usually because a feature is missing (Teams Phone, Power BI, Copilot, Project, Visio) or because they are trying to install an Office app and the download isn't offered. Before troubleshooting, you need a definitive answer to the question: what licenses does this account have assigned right now?
This workflow shows three ways to retrieve the list of Microsoft 365 (Entra ID) licenses assigned to a single user: the Microsoft 365 admin center, the Microsoft Graph API, and PowerShell. Use it for help desk tickets, license audits, pre-migration checks, or to confirm that a group-based licensing assignment reached a user.
Expected outcomes
- A list of every SKU (license) assigned to the target user, with friendly names.
- Visibility into whether the license was assigned directly or inherited from a group.
- The enabled and disabled service plans within each license (for example, whether Teams or Exchange is turned on within an E3).
- The user's usage location, which is required before any license can be assigned.
Risks and considerations
This is a read-only operation. Keep these points in mind:
- SKU IDs vs. friendly names: The API returns GUIDs such as
6fd2c87f-b296-42f0-b197-1e91e994b900(ENTERPRISEPACK, Office 365 E3). Translate them to friendly names before sharing with end users. Microsoft publishes the mapping in its licensing service plan reference. - Group-based licensing: If
assignedByGroupis populated, removing the user's direct license does not work. Change group membership or the group's license assignment instead. - Privacy: License data is user attribute data. Only query accounts you are authorized to support.
- Feature availability: Do not use this workflow as evidence of feature availability for compliance workloads (for example, eDiscovery or Purview) without also checking role assignments and service plan state.
Required permissions
| Permission | Why it's needed |
|---|---|
| User.Read.All | Required to read another user's profile, including assignedLicenses and assignedPlans. |
| Directory.Read.All | Needed to resolve group-based license assignments (assignedByGroup references). |
| Organization.Read.All | Allows enumeration of tenant SKUs so GUIDs can be translated to friendly names. |
Ask Dex
Paste the prompt into a Dex conversation.
Prompt for IT admins
Show me every Microsoft 365 license assigned to {user}, including the friendly SKU name, whether it was assigned directly or via a group (and which group), and any disabled service plans.
How an end user can ask Dex
What Microsoft 365 license do I have? I'm trying to figure out if I have Teams Phone / Copilot / the desktop Office apps.
Manual steps (admin center)
- Sign in to the Microsoft 365 admin center as a User Administrator, License Administrator, or Global Reader.
- In the left navigation, go to Users > Active users.
- Search for the user by display name or UPN and click their row to open the flyout.
- Select the Licenses and apps tab.
- Review the Licenses section. Every selected box is an assigned SKU. An Inherited tag next to a license indicates it came from group-based licensing.
- Expand Apps to see which service plans (Teams, Exchange, SharePoint, Intune, Copilot, and others) are enabled or disabled within each SKU.
- For another view, go to Billing > Licenses, open a specific SKU, and use Assigned licenses to confirm the user appears there.
For deeper detail (assignment date, group source GUID), use the Microsoft Entra admin center: Identity > Users > select the user > Licenses.
Microsoft Graph API
Use the /users/{id} endpoint and request the license-related properties. Graph requires you to explicitly $select assignedLicenses and assignedPlans.
Request
GET https://graph.microsoft.com/v1.0/users/{userPrincipalName}?$select=id,displayName,userPrincipalName,usageLocation,assignedLicenses,assignedPlans,licenseAssignmentStates
Authorization: Bearer {access_token}Sample response (trimmed)
{
"id": "8a9...",
"displayName": "Jane Doe",
"userPrincipalName": "jane@contoso.com",
"usageLocation": "US",
"assignedLicenses": [
{ "skuId": "6fd2c87f-b296-42f0-b197-1e91e994b900", "disabledPlans": [] }
],
"licenseAssignmentStates": [
{
"skuId": "6fd2c87f-b296-42f0-b197-1e91e994b900",
"assignedByGroup": "d21a...",
"state": "Active"
}
]
}Translate SKU GUIDs to friendly names
Call the subscribed SKUs endpoint once and build a lookup map:
GET https://graph.microsoft.com/v1.0/subscribedSkus?$select=skuId,skuPartNumberThen map each skuId from the user to its skuPartNumber (for example, ENTERPRISEPACK, SPE_E5, Microsoft_365_Copilot).
Notes
assignedLicensesgives the raw assignment.licenseAssignmentStatestells you how it was assigned (direct or group) and whether it is in error.- If the user has
usageLocation: null, licenses cannot be assigned until it is set.
PowerShell
The legacy MSOnline and AzureAD modules are deprecated. Use Microsoft.Graph.
- Install the module (once per machine):
Install-Module Microsoft.Graph -Scope CurrentUser - Connect with the minimum required scopes:
Connect-MgGraph -Scopes "User.Read.All","Organization.Read.All" - Retrieve the user and their license assignment states:
$user = Get-MgUser -UserId "jane@contoso.com" ` -Property Id,DisplayName,UserPrincipalName,UsageLocation,AssignedLicenses,LicenseAssignmentStates $user.AssignedLicenses - Translate GUIDs to friendly names:
$skuMap = Get-MgSubscribedSku | Select-Object SkuId,SkuPartNumber $user.AssignedLicenses | ForEach-Object { $sku = $skuMap | Where-Object SkuId -eq $_.SkuId [pscustomobject]@{ Sku = $sku.SkuPartNumber; DisabledPlans = $_.DisabledPlans.Count } }