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 Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,450 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Navya 13,455 Reputation points Microsoft Vendor
    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 Answers by the question author, which helps users to know the answer solved the author's problem.