Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,990 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I’m having trouble pulling a list of empty Azure Active Directory groups, as there are over 500 groups I need a quicker way to pull a list.
thank you in advance
Using PowerShell or? Try something like this:
Get-MsolGroup -GroupType Security | ? {(Get-MsolGroupMember -GroupObjectId $_.ObjectId).count -eq 0 }
A more "modern" approach using the Graph SDK for PowerShell:
Get-MgGroup | ? {!(Get-MgGroupMember -GroupId $_.Id)}