AzureAD: Get List of all users with a particular license

You might have to do reporting and want a list of all users in Azure AD which have a particular license.. Following is an easy way to do so

Get-MsolAccountSku will give you a table of all the License Types you have and count AccountSkuId ActiveUnits WarningUnits ConsumedUnits TENANTNAME:AAD_BASIC 300000 0 1 TENANTNAME:AAD_PREMIUM 300000 […]