Created
September 28, 2021 11:22
-
-
Save mhupfauer/de1c02204ec6299508de381734ef4f47 to your computer and use it in GitHub Desktop.
Get all azure ad users with assigned licenses sku
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$out=@{}; Get-AzureADUser -All:$true -Filter "UserType eq 'Member'" | % {$out.Add($_.ObjectId, $_.assignedLicenses.SkuId)}; $out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment