Microsoft Security | Microsoft Entra | Microsoft Entra ID
A cloud-based identity and access management service for securing user authentication and resource access
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
A cloud-based identity and access management service for securing user authentication and resource access
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.