Cross-reference E5-exclusive service usage with assigned licenses to find safe downgrade candidates and reduce licensing spend.
Complexity: Advanced. Impact: cost-savings + licensing + reporting + governance + optimization.
Why use this workflow
Microsoft 365 E5 includes exclusive workloads that E3 does not: Power BI Pro, Audio Conferencing, Phone System, Advanced eDiscovery, Microsoft Defender for Office 365 Plan 2, Defender for Endpoint Plan 2, Microsoft Purview (advanced), and Customer Lockbox. In many tenants, some E5 seats are assigned to users who never use any of these E5-exclusive features.
This workflow helps you systematically identify those users so Finance and IT can downgrade them to E3 (or E3 plus targeted add-ons) without breaking workflows or losing data. It is typically run:
- During annual or quarterly true-up and renewal cycles
- Before a Microsoft Enterprise Agreement renegotiation
- As part of a cost-optimization initiative
- After M&A activity when license inventories merge
The core technique is to cross-reference the list of E5 license holders against activity data from the Microsoft Graph usage reports (Power BI, Teams PSTN, Defender, Purview) over a 90-day window.
Expected outcomes
You will produce:
- A complete inventory of users assigned an E5 SKU in your tenant
- A per-user utilization matrix showing which E5-exclusive services each user has used in the last 90 days
- A downgrade candidate list: users with no E5-exclusive activity who can move to E3
- A keep-as-E5 list: users actively using at least one E5-exclusive feature
- An estimated annual cost savings figure based on candidate count
- A CSV export suitable for review by Finance, Security, and department managers before action
Risks and considerations
- Data loss risk: Downgrading removes access to E5-only features. Power BI Pro content a user owns (workspaces, reports) may become inaccessible if no other Pro user inherits ownership. Reassign ownership first.
- Defender coverage gap: Removing Defender for Office 365 Plan 2 removes advanced Safe Attachments and Safe Links policies, Attack Simulator, and automated investigation for that user. Make sure the downgrade does not leave executives or high-value targets without coverage.
- PSTN and phone numbers: If the user has a phone number assigned through Phone System (included in E5), downgrading removes calling. Reassign the number or move the user to E3 plus a Teams Phone add-on.
- Compliance obligations: Users under legal hold, Advanced eDiscovery custodianship, or with Customer Key or Customer Lockbox requirements may require E5. Confirm with Legal or Compliance before acting.
- Usage report limits: Graph usage reports cover a maximum of 90 days. A user who used Power BI 100 days ago does not appear as active. Consider pulling multiple 90-day snapshots or combining with a Power BI admin portal export.
- Anonymized reports: If
displayConcealedNamesistruein report settings, UPNs are redacted. You must turn it off (a tenant admin action that is audit-logged) to attribute usage to individuals. - Pilot first: Trial the downgrade on a small group of users before any bulk action.
Required permissions
| Permission | Why it's needed |
|---|---|
| Organization.Read.All | Enumerate subscribed SKUs and identify E5 vs E3 SKU IDs and service plans |
| User.Read.All | List users and their assigned license details to find E5 holders |
| Reports.Read.All | Read Office 365, Teams, Power BI, and Yammer activity reports to determine feature usage |
| Directory.Read.All | Supporting directory lookups for user attributes (department, manager) used in the candidate report |
| ReportSettings.ReadWrite.All | Temporarily disable report anonymization so usage can be attributed to named users |
Ask Dex
Paste the prompt into a Dex conversation.
Prompt for IT admins
Analyze our tenant's E5 license usage over the last 90 days. Identify users who are NOT using any E5-exclusive features (Power BI Pro, Audio Conferencing, Phone System, Defender P2, Advanced eDiscovery, Customer Key). Produce a CSV of safe downgrade candidates to E3, a keep-as-E5 list, and an estimated annual savings figure assuming E5 costs {annual_e5_cost} and E3 costs {annual_e3_cost} per user.
Manual steps (admin center)
The portal does not provide a single consolidated E5-vs-E3 utilization report, so the manual path combines multiple admin views.
Step 1: Confirm SKU inventory
- Sign in to the Microsoft 365 admin center as a Global Reader or Global Administrator.
- Go to Billing > Your products.
- Identify your E5 SKU (
SPE_E5,ENTERPRISEPREMIUM, or similar) and E3 SKU (SPE_E3,ENTERPRISEPACK). Note the assigned and available counts.
Step 2: Export E5 license holders
- Go to Billing > Licenses and click your E5 product.
- Click Assigned users > Export to download a CSV of current E5 assignees.
Step 3: Disable report anonymization (required for named attribution)
- Go to Settings > Org settings > Services > Reports.
- Clear Display concealed user, group, and site names in all reports.
- Click Save. This change is audit-logged.
Step 4: Gather usage data per E5-exclusive service
- Power BI Pro usage: Open the Power BI admin portal and use Usage metrics, or export the activity log (Admin portal > Audit logs) for the last 90 days. Extract the unique
UserIdvalues. - Teams Audio Conferencing and PSTN: In the Teams admin center, go to Analytics & reports > Usage reports > PSTN and SMS usage. Export the last 90 days.
- Defender for Endpoint: In the Microsoft Defender portal (security.microsoft.com), go to Assets > Devices and identify which users' devices are onboarded.
- Advanced eDiscovery and Purview: In the Microsoft Purview portal (compliance.microsoft.com), go to eDiscovery > Premium and list custodians on active cases.
Step 5: Cross-reference and build the candidate list
- In Excel, combine the E5 holder list with the four usage lists using VLOOKUP or XLOOKUP on UPN.
- Any E5 user who does not appear in any of the four usage lists is a downgrade candidate.
- Validate with the user's manager before acting.
Step 6: (Optional) Re-enable anonymization
Return to Settings > Org settings > Services > Reports and select the concealed names option again if your policy requires it.
Microsoft Graph API
The API approach automates the cross-reference. All endpoints are v1.0 unless noted.
Step 1: Identify the E5 and E3 SKU IDs in your tenant
GET https://graph.microsoft.com/v1.0/subscribedSkus?$select=skuId,skuPartNumber,servicePlansLook for skuPartNumber values such as:
SPE_E5: Microsoft 365 E5ENTERPRISEPREMIUM: Office 365 E5SPE_E3: Microsoft 365 E3ENTERPRISEPACK: Office 365 E3
Note the skuId GUID for the E5 SKU. You filter users against it.
Step 2: List all users assigned the E5 SKU
GET https://graph.microsoft.com/v1.0/users?$filter=assignedLicenses/any(x:x/skuId eq {E5_SKU_ID})&$select=id,displayName,userPrincipalName,accountEnabled,department,assignedLicenses&$count=true
ConsistencyLevel: eventualPaginate with @odata.nextLink. Store the UPNs in a set called e5Users.
Step 3: Ensure usage reports show real UPNs
GET https://graph.microsoft.com/v1.0/admin/reportSettings
// If displayConcealedNames = true, patch it:
PATCH https://graph.microsoft.com/v1.0/admin/reportSettings
Content-Type: application/json
{ "displayConcealedNames": false }Step 4: Pull E5-exclusive feature usage (90-day window)
Each of these returns CSV. Parse it and extract the User Principal Name column for users with non-zero activity.
// Teams PSTN / Audio Conferencing
GET /v1.0/reports/getPstnCalls(fromDateTime=2024-01-01,toDateTime=2024-03-31)
// Power BI activity (use the Power BI admin API)
GET https://api.powerbi.com/v1.0/myorg/admin/activityevents?startDateTime='2024-01-01T00:00:00'&endDateTime='2024-01-01T23:59:59'
// Office 365 Active Users (per-service activity flags)
GET /v1.0/reports/getOffice365ActiveUserDetail(period='D90')Step 5: Check each user's licenseDetails for dependency signals
GET /v1.0/users/{user_id}/licenseDetailsReturns the service plans enabled for the user. Use it to confirm whether Power BI Pro, Defender P2, and similar plans are provisioned and not disabled.
Step 6: Compute the candidate set
Pseudo-logic:
candidates = e5Users
- powerBiActiveUsers
- pstnActiveUsers
- defenderP2ActiveUsers
- advancedEDiscoveryCustodiansAny user remaining is a downgrade candidate. Export to CSV with columns: UPN, Display Name, Department, Account Enabled, Last Sign-in, Recommended Action.
PowerShell
The approach below uses the Microsoft.Graph PowerShell SDK to automate the analysis and produce a candidate CSV in one run.
Prerequisites
- PowerShell 7 or later
Install-Module Microsoft.Graph -Scope CurrentUser- An admin account with the permissions listed above (or consent on first run)
Approach
- Connect to Graph with the required delegated scopes.
- Discover the E5 SKU by matching
skuPartNumberagainst known E5 identifiers. - Enumerate all E5 license holders with paging.
- Make sure report names are visible, and restore the prior setting afterward if needed.
- Pull three 90-day usage reports: PSTN calls, Office 365 active users, and Teams device usage.
- Check each user's licenseDetails for active E5 service plans.
- Write two CSV files: one for downgrade candidates and one for users to keep on E5.
- Print a summary with estimated annual savings.
Review the output CSVs with Finance and department managers before making any license changes.