SOLVED

How to list of groups a user's has been assigned

Steel Contributor

Is there a way to find and verify what all the groups a specific user is part of in Azure AD? Sometimes I need to identity list of groups and permission a possible rouge user or a unsatisfied privilege user of organization who is serving notice period has in the entire environment. Instead of searching any specific group  

1 Reply
best response confirmed by Chandrasekhar_Arya (Steel Contributor)
Solution
Sure, use the Get-MgUserMemberOf cmdlet or the corresponding /memberOf endpoint. Here's an article with more details and a sample script you can use: https://www.michev.info/blog/post/4235/reporting-on-users-group-membership-in-azure-ad