Multiple group Member details download from Azure

Hriday Dhali 1 Reputation point
2022-05-21T06:24:59.52+00:00

From the Azure portal I would like to perform the below job, how can I do that

  1. Want to download all members of Group A, Group B, and Group C with group mapping
  2. All member details with associated group, from example user1 has member of 5 group , it should show all groups name corresponding to user name
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,472 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sandeep G-MSFT 14,486 Reputation points Microsoft Employee
    2022-05-24T17:16:48.06+00:00

    @Hriday Dhali

    Thank you for reaching out to us.

    As per your query you want to download members of few groups in Azure and also you want to get the group membership details of all users.

    You can get this information in 2 different ways,
    • Azure portal
    • Azure AD PowerShell

    Via Azure portal you can only see the user who all are part of particular group,

    205241-1.jpg

    You can use PowerShell method to get all the list of users who are part of particular group,

    • Open Windows PowerShell as administrator.
    • Install Azure AD Module by running below command,
    • Install-Module AzureAD
    • Once module is installed you can type in command ”Connect-AzureAD”
    • Enter the global admin credentials.
    • Run command ”Get-AzureADGroupMember -ObjectId <Object ID of a group>”. You will see below output with list of all members of this group.

    205176-2.jpg

    You can use this PowerShell method to get list of all members of particular group.

    You also wanted to get user’s group membership information. Below is the command to get the information about user group membership (group to which user is part off)
    Run command “Get-AzureADUserMembership -ObjectId <user object ID>”.
    Below is the screenshot of how the output will look,

    205231-3.jpg

    Above is the list of groups to which user is part of,

    Do let me now if you have any further questions on this.

    Thanks,
    Sandeep G

    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.