How to get the members of Azure Active Directory groups using PowerShell scripts

The following table illustrates how you can get the members of groups in your Azure AD network using PowerShell scripts and ADManager Plus, an Active Directory management and reporting tool.

Azure PowerShell

Steps to fetch the members of an Azure AD group using PowerShell scripts:

  1. Obtain the display name of the group whose members you would like to fetch.
  2. Execute the following PowerShell script and list the members of the desired groups:
 Copied
Get-AzADGroupMember -GroupDisplayName $name
Click to copy entire script

ADManager Plus

Steps to add members to Azure AD groups using ADManager Plus:

  1. Log in to ADManager Plus and navigate to Microsoft 365 tab Reports > Group Reports.
  2. Under General Group Reports, click Group Members.
  3. Select the desired Microsoft 365 tenant from the Microsoft Tenant drop-down list and select the domains/groups from the Filter By drop-down list.
  4. Click Generate Now.

Limitations of using PowerShell scripts to list Azure AD groups:

  • PowerShell scripts lack GUI capabilities and requires an extensive knowledge in scripting.
  • PowerShell scripts are time-consuming and can affect productivity.
  • Reports generated using PowerShell scripts provide limited information and are quite complex to generate.

Benefits of using ADManager Plus:

  • Predefined reports that can be generated with a click of a button.
  • Reports can be customized to suit your organizaton's needs.
  • Schedulable reports with capabilities to notify stake holders.

Azure AD group membership management and reporting tool

  Get 30-day free trial.
  • Embark on your script-free AD management, reporting, and automation journey with ADManager Plus.
  •  
  • By clicking 'Start your free trial now', you agree to processing of personal data according to the Privacy Policy.
  • Thanks
  • Your download should begin automatically in 15 seconds. If not, click here to download manually.

Related Powershell How-to Guides:

The one-stop solution toActive Directory Management and Reporting

Email Download Link