Forum Discussion
SS_9711
May 19, 2023Copper Contributor
Download group members with groups they belong to (AAD)
Hello, Just like in topic - I need to download list of users from AAD with groups they belong to, for example: Group A has users X, Y and Z and X is a member of group 1, Y - 1 and 3, Z - 2, 3. I ne...
- May 19, 2023Try the script here: https://www.michev.info/blog/post/4235/reporting-on-users-group-membership-in-azure-ad
It takes input as a list of users, so you can feed it the group A membership:
.\AAD_Groups_MemberOf_inventory.ps1 -UserList (Get-MgGroupMember -GroupId $GroupID).UserPrincipalName
VasilMichev
May 19, 2023MVP
Try the script here: https://www.michev.info/blog/post/4235/reporting-on-users-group-membership-in-azure-ad
It takes input as a list of users, so you can feed it the group A membership:
.\AAD_Groups_MemberOf_inventory.ps1 -UserList (Get-MgGroupMember -GroupId $GroupID).UserPrincipalName
It takes input as a list of users, so you can feed it the group A membership:
.\AAD_Groups_MemberOf_inventory.ps1 -UserList (Get-MgGroupMember -GroupId $GroupID).UserPrincipalName