Scenario: You have 1,000+ distribution groups in a G-workspace domain.
The Task:
-Generate a list containing all groups.
-List the number of members in each group
-Some groups have distribution groups within them. Determine the number of users in these distribution groups and update the 'parent group' member count accordingly.
The first two items are relatively easy using 'GAM print groups'.
The challenge: Some of these groups contain members and groups.
Does GAM have a way to recurse/iterate through these 'sub-group's and update the member count accordingly?
I've been dabbling with a python script I created that is able to generate the list of groups along with the member count. However, I'm running into the same challenge of the groups within a group part.
Ideally, there is a solution I have not come across with GAM. If that isn't the case, maybe a solution exists in Python or another programming language. If that doesn't exist, is there a third party app that can do this for free?