Get-AzADGroupMember

In this Azure PowerShell article, we will discuss the syntax and usage of the Get-AzADGroupMember PowerShell command with certain examples.

Get-AzADGroupMember

This PowerShell command can help you list the members from an Azure AD group.

Syntax of Get-AzADGroupMember

Below is the syntax of the Get-AzADGroupMember PowerShell command.

Get-AzADGroupMember -GroupObjectId <String>
Get-AzADGroupMember -GroupDisplayName <String>

Get-AzADGroupMember Examples

Let’s discuss a few examples of how to use the Get-AzADGroupMember PowerShell command.

Example-1

You can execute the below Azure PowerShell command to get the lists of members from an Azure AD group with the specified Group ID.

Get-AzADGroupMember -GroupObjectId "d7496713-3252-4601-afa8-d3d8b86dea72"

After executing the above PowerShell command, I got the below-expected output.

DisplayNameIdMailUserPrincipalName
tsinfonewuser5e013a07-e22a-4d46-a6be-ca68b893b6dftsinfouser@fewlines4bijuhotmail.onmicrosoft.com
abc2867be31-5c6b-4e5f-8d21-30a76af0ff5c abc@tsm.comabc@tsm.comabc_tsm.com#EXT#@fewlines4bijuhotmail.onmicrosoft.com

You can see the same output below

Get-AzADGroupMember

Example-2

You can execute the below Azure PowerShell command to get the lists of members from an Azure AD group with the specified Group Display Name.

Get-AzADGroupMember -GroupDisplayName "AAD DC Administrators"

After executing the above Azure PowerShell command, I got the below-expected output

Get-AzADGroupMember PowerShell

Get-AzADGroupMember PowerShell – Video Tutorial

Wrapping Up

In this Azure PowerShell article, we discussed the syntax and usage of the Get-AzADGroupMember PowerShell command with certain examples. Thanks for reading this article !!!