Forum Discussion
Jeff_Lamb
Jun 29, 2020Brass Contributor
Get all license groups
I am looking for a way to get all AzureAD groups that assign licenses using the AzureAD Powershell module. "Get-AzureADGroup" lacks the licensing detail. I know that "Get-MsolGroup -All | Where ...
- Jun 30, 2020
It's either that, or querying the Graph API directly.
Bas_de_Jong
May 24, 2023Copper Contributor
In case anyone is still searching for an answer to this in 2023:
get-mggroup -Property AssignedLicenses | Where-Object {$_.AssignedLicenses}
...should do the trick.