Skip to content

Instantly share code, notes, and snippets.

@mhupfauer
Created September 28, 2021 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhupfauer/de1c02204ec6299508de381734ef4f47 to your computer and use it in GitHub Desktop.
Save mhupfauer/de1c02204ec6299508de381734ef4f47 to your computer and use it in GitHub Desktop.
Get all azure ad users with assigned licenses sku
$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