Update
For the latest version of this code please visit msgraph-sdk-powershell-examples.
Deprecated Content
Getting All Azure AD Users assigned licenses using the Microsoft Graph SDK for PowerShell.
PowerShell Code
Note: This code requires the Microsoft Graph SDK for PowerShell.