Share via

How get group Azure membership

Johan Pol 46 Reputation points
2024-11-22T14:45:27.9166667+00:00

With AD connect you can ececute whoami and then i have the groups listed i am member off.

How i get this info when Azure cloud attached?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. Gudivada Adi Navya Sri 21,090 Reputation points Moderator
    2024-11-22T18:12:47.6766667+00:00

    Hi @Johan Pol

    I understand you want to get a list of Azure groups where you are a member.

    You can find this information in the Microsoft Entra Admin Center portal under your profile -> Groups.

    User's image

    Alternatively, you can use PowerShell. Replace $userid with your user id.

    Install-Module Microsoft.Graph.Users
    
    Import-Module Microsoft.Graph.Users 
    
    Connect-MgGraph -Scopes "User.Read.All", "GroupMember.Read.All"
    
    Get-MgUserMemberOf -UserId $userId
    

    Hope this helps. Do let us know if you any further queries.

    Thanks,

    Navya.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.