Generate-M365LicenseAssignmentReport
2.6
This script connects to Microsoft 365 services and collects detailed information about license assignments across the tenant. It produces a formatted report showing which users have been assigned which licenses, including license details and assignment status. The report can be exported to various formats for analysis and compliance purposes.
Installation Options
Owners
Package Details
Author(s)
- Roy Klooster
Tags
RKSolutions Microsoft365 MicrosoftEntraID MicrosoftGraph
Functions
New-HTMLReport Install-Requirements Connect-ToMgGraph Invoke-GraphRequestWithPaging Get-LicenseIdentifiers Send-EmailWithAttachment
Dependencies
This script has no dependencies.
Release Notes
Initial release - Comprehensive Microsoft 365 license assignment report with HTML output
v1.0 -2.3 - Test phase
v2.4 - Added function Test-MgGraphConnection to check for existing connections with the proper permissions
V2.5 - removed the need of "Microsoft.Graph.Beta.Identity.DirectoryManagement","Microsoft.Graph.Beta.Users", "Microsoft.Graph.Beta.Groups".
- Powershell 7 as requirements have been fixed + faster
v2.6 - Added Interactive, ClientSecret, Certificate, Identity and AccessToken parameters to support different authentication methods.
- Added support for sending the report via email with customizable subject and body text.
FileList
- Generate-M365LicenseAssignmentReport.nuspec
- Generate-M365LicenseAssignmentReport.ps1
Version History
Version | Downloads | Last updated |
---|---|---|
2.6 (current version) | 14 | 5/22/2025 |
2.5 | 752 | 4/15/2025 |
2.4 | 881 | 4/11/2025 |