GAM printing groups that listed users are joined

244 views
Skip to first unread message

zmd

unread,
Jun 28, 2023, 3:44:12 AM6/28/23
to GAM for Google Workspace
Hi all,

I have a question here regarding the printing group with specific users within. 
so I know i could use something like  gam redirect csv ./usersgrouplist.csv multiprocess csv userlist.csv gam print groups member ~email ,  so that you could list out all groups that my listed users are joined. But what if I want it to have the user email(~email) column as well so I can see clearly which group the users belong to?
For e.g
email user
groupA user1
groupB user1
groupC user1
groupD user2
groupF user2
groupA user2

Just Wild

unread,
Jun 28, 2023, 6:06:07 AM6/28/23
to GAM for Google Workspace
Hi
try use "gam print group-members todrive" or "gam print group-members >filename.csv"
as result you will get list with columns: group,type,role,id,status,email then you can sort it as you need.
середа, 28 червня 2023 р. о 10:44:12 UTC+3 zmd пише:

Ross Scroggs

unread,
Jun 28, 2023, 9:46:31 AM6/28/23
to google-ap...@googlegroups.com
Try this:

gam redirect csv ./usersgrouplist.csv multiprocess csv userlist.csv gam user ~email print groups

Ross
----
Ross Scroggs



--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/48bba981-1910-4d80-9901-1157cc0dbb3cn%40googlegroups.com.

Ross Scroggs

unread,
Jun 28, 2023, 10:21:39 AM6/28/23
to google-ap...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages