We need to get list of all groups for each user in the system. We have >

We need to get list of all groups for each user in the system.
We have >4000 users and each user is part of >100 groups.
At the end we would like to have this data in an Excel file or somewhere. Any ideas on how to implement this?

OriginalPostID-191746

OriginalPostID-191746

  Discussion posts and replies are publicly visible