How to list the Azure Active Directory groups using PowerShell scripts
This following illustrates how you can get the list of Azure AD groups in your network using PowerShell scripts and ADManager Plus, an Active Directory management and reporting tool.
Azure PowerShell
The following cmdlet can be used to fetch the Azure AD groups in your network:
Copied
Get-AzADGroup
[-Count]
[-Expand <String[]>]
[-Select <String[]>]
[-Filter <String>]
[-Orderby <String[]>]
[-Search <String>]
[-ConsistencyLevel <String>]
[-First <UInt64>]
[-Skip <UInt64>]
[-AppendSelected]
[-DefaultProfile <PSObject>]
[-CountVariable <String>]
[<CommonParameters>]
Click to copy entire script
ADManager Plus
Steps to list Azure AD groups using ADManager Plus:
- Log in to ADManager Plus and navigate to Microsoft 365 tab > Reports > Group Reports.
- Under General Group Reports, click All Groups.
- Select the desired Microsoft 365 tenant from the Microsoft Tenant drop-down list and click Generate.
Limitations of using PowerShell scripts to list Azure AD groups:
- PowerShell scripts are run in a command line and are not user friendly.
- Only technicians with PowerShell expertise can execute this command.
- These scripts have a longer generation time and can affect productivity.
Benefits of using ADManager Plus:
- Generate reports at the click of a button without any hassle.
- Manage objects on the fly from reports without any scripts.
- Reports can be scheduled and exported in desired formats.