M365 Curated SOP / Microsoft 365 and identity
List who has Microsoft 365 Copilot licences
List which users in a client's tenant hold a Microsoft 365 Copilot licence, and how many licences are bought but not assigned.
Written and maintained by MSP Stockroom. Nobody else edits it.
On this page
Before you run anything: read every command first and understand what it does. Replace example names, domains and addresses with your own. Try it on a test device or tenant before a client's. Keep client names, passwords and keys out of tickets and chat.
Purpose
List which users in a client's tenant hold a Microsoft 365 Copilot licence, and how many licences are bought but not assigned. Copilot licences are expensive and give the holder an AI that can search everything they can open. The client should know who has one and why. Run it before and after a rollout and at each licence true-up. Read-only: nothing in this SOP changes the tenant.
Scope and prerequisites
- Run by the client's assigned engineer.
- Needs an account that can read users and licences, such as Global Reader.
- The Microsoft Graph PowerShell SDK installed from the PowerShell Gallery.
- Store the results in your documentation platform, never in this library.
Steps
- Sign in with read-only scopes:
# Read-only scopes. You will be asked to sign in to the client's tenant. Connect-MgGraph -Scopes "User.Read.All", "Organization.Read.All" - Find the Copilot licences the tenant has bought:
$skus = Get-MgSubscribedSku -All | Where-Object SkuPartNumber -like '*Copilot*' $skus | Select-Object SkuPartNumber, SkuId, @{ n = 'Bought'; e = { $_.PrepaidUnits.Enabled } }, @{ n = 'Assigned'; e = { $_.ConsumedUnits } }Read the result:
- No rows: the tenant has no Copilot licence. Stop here.
- Bought higher than Assigned: licences are paid for but unused. Record the gap.
- More than one row: there are several Copilot products. Run step 3 for each.
- List the users who hold each Copilot licence:
foreach ($sku in $skus) { $holders = Get-MgUser -All -ConsistencyLevel eventual -CountVariable holderCount ` -Filter "assignedLicenses/any(x:x/skuId eq $($sku.SkuId))" ` -Property DisplayName, UserPrincipalName, AccountEnabled, Department '{0}: {1} users' -f $sku.SkuPartNumber, $holderCount $holders | Select-Object DisplayName, UserPrincipalName, AccountEnabled, Department }An account with AccountEnabled False still uses a licence. Record it.
- Disconnect when finished:
Disconnect-MgGraph
Verify
Every Copilot licence holder is on the client's approved list, no blocked account holds a licence, and any unused licences are known to the client.
Rollback
Nothing to roll back; this SOP only reads. Assigning or removing a licence is a separate change, made with the client's approval.
Notes
Licence names vary between products and regions, so the script matches any SKU with Copilot in its name. Check the list in step 2 before you rely on it. For how much each person actually uses Copilot, see the Copilot usage report in the Microsoft 365 admin center. What people ask Copilot is recorded in the audit log; see the SOP "Confirm Microsoft 365 audit logging is on before rolling out AI tools". See https://learn.microsoft.com/microsoft-365/enterprise/view-licensed-and-unlicensed-users-with-microsoft-365-powershell for Microsoft's guidance.
Sources and notes
Curated SOP from the MSP Stockroom SOP library (curated/m365-identity/list-who-has-microsoft-365-copilot-licences.md). Last reviewed December 1, 2026. Tested on: Not yet run; written for Microsoft Graph PowerShell SDK 2.x; PowerShell 7.4. Vendor screens and commands change; check the vendor documentation before you rely on a step. Found a mistake? See corrections.