Az ad group member list is an excellent Azure CLI command that retrieves the lists of members from an Azure AD group. In this article, I will walk you through the syntax and usage of the az ad group member list command with certain real-time examples.
Table of Contents
Az ad group member list
Let us see the syntax of this command.
Syntax
az ad group member list --group 'The Display name of your group'az ad group member list --group Group object IDExample-1: Retrieving the member details using Group Display Name
We can execute the below Azure CLI command to get the lists of members available in the Azure AD group with the display name “AzureLessons New group”.
az ad group member list --group 'AzureLessons New group'After executing the above command, I got the expected output, which is below.
PS /home/bijay> az ad group member list --group 'AzureLessons New group'
[
{
"@odata.type": "#microsoft.graph.user",
"businessPhones": [],
"displayName": "Bijay Kumar Sahoo",
"givenName": "Bijay Kumar",
"id": "54481342-e592-47c2-ba89-b07dcadf9346",
"jobTitle": "Manager",
"mail": null,
"mobilePhone": null,
"officeLocation": null,
"preferredLanguage": null,
"surname": "Sahoo",
"userPrincipalName": "fewlines4biju_hotmail.com#EXT#@fewlines4bijuhotmail.onmicrosoft.com"
},
{
"@odata.type": "#microsoft.graph.user",
"businessPhones": [],
"displayName": "trp",
"givenName": null,
"id": "64865eec-00be-420e-b3f9-e64ec0af7e56",
"jobTitle": null,
"mail": "trp@tsm.com",
"mobilePhone": null,
"officeLocation": null,
"preferredLanguage": null,
"surname": null,
"userPrincipalName": "trp_tsm.com#EXT#@fewlines4bijuhotmail.onmicrosoft.com"
},
{
"@odata.type": "#microsoft.graph.user",
"businessPhones": [],
"displayName": "abc",
"givenName": null,
"id": "2867be31-5c6b-4e5f-8d21-30a76af0ff5c",
"jobTitle": null,
"mail": "abc@tsm.com",
"mobilePhone": null,
"officeLocation": null,
"preferredLanguage": null,
"surname": null,
"userPrincipalName": "abcuser@fewlines4bijuhotmail.onmicrosoft.com"
}
]You can see the same output in the screenshot below as well.

Example-2: Retrieving the member details using Group Object ID
Below query will get the member details of the Azure AD Group with object ID 96b324f0-d6ed-48b1-b17f-e02835ecafb7.
ad group member list --group 96b324f0-d6ed-48b1-b17f-e02835ecafb7After executing the above query, I got the lists of member details successfully as shown in the below screenshot.

Conclusion
In this article, we discussed the syntax and usage of the az ad group member list Azure CLI command with real time examples how to get the member details using Group display name and object ID.
You may also like following the articles below.

I am Rajkishore, and I am a Microsoft Certified IT Consultant. I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machines, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.
