Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,401 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
PowerShell script to Export All Azure AD groups Starting with "ABC" name and membership of their groups
Hello @Kevin Alive . Here it is:
Get-AzureADGroup -Filter "startswith(displayName,'D')"|foreach { $m=Get-AzureADGroupMember -ObjectId $_.ObjectId ; $o=[PSCustomObject]@{
Group = $_
Members = $m
}; $o }|ConvertTo-Json -Depth 5|Out-File -FilePath .\groups-starting-with-abc.json
Let us know if this answer was helpful to you. If so, please remember to mark it as the answer so that others in the community with similar questions can more easily find a solution.