Printing Group Memberships including empty groups

147 views
Skip to first unread message

Don Beck

unread,
May 6, 2022, 10:42:01 AM5/6/22
to GAM for Google Workspace
I run this command:

gam print group-members todrive tdparent < drivefolderid>  

but it does not include empty groups.  What can I add to get all groups even if empty?

Ross Scroggs

unread,
May 6, 2022, 12:00:34 PM5/6/22
to google-ap...@googlegroups.com
Don,

A row for a group with no members would look like this: gr...@domain.com,,,,,,
which would mess up processing the file in a subsequent gam csv command.

What's the objective, identifying groups with no members?

Ross
--

PLEASE NOTE
The information in this E-Mail message is legally privileged and confidential information intended only for the use of the individual(s) named above.  If you, the reader of this message, are not the intended recipient, you are hereby notified that you should not further disseminate, distribute, or forward this E-mail message.  If you have received this E-mail in error, please notify the sender. Thank you!

--
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/3dbf3f17-0fe8-46e1-84a7-29020e13cc65n%40googlegroups.com.

Don Beck

unread,
May 6, 2022, 12:09:39 PM5/6/22
to google-ap...@googlegroups.com
Hi Ross

Just want all my groups together, with and without members for auditing.  As an example, we've just landed 3 new contracts and we're adding all the groups and such that we need.  I use that report on regular basis to audit all our groups and I'm looking to add the non-menber groups to that report as part of the audit, so I can make sure folks are doing what they are supposed to and populating the groups with the correct folks, so if there is an empty group, then I know what needs fixed.  If we can't add to this report, is there another report that shows empty groups? 


Thanks,

Don


Don Beck

Director of Systems & Technology

Meriwether Godsey, Inc.

Meriwether Godsey

(434) 849-7323 (office)

(434) 258-1775 (cell)


 P Please consider the environment before printing this e-mail



You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/MBr2vuaTvqg/unsubscribe.
To unsubscribe from this group and all its topics, 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/BF21CAED-96E0-450B-BCC4-28CF6142C51A%40gmail.com.

Ross Scroggs

unread,
May 6, 2022, 12:15:20 PM5/6/22
to google-ap...@googlegroups.com
Don,

gam config csv_output_row_filter "TotalCount:count=0" print groups members managers owners totalcount countsonly

Ross

Don Beck

unread,
May 6, 2022, 12:32:04 PM5/6/22
to google-ap...@googlegroups.com
Thanks Ross - that will work!!


Thanks,

Don


Don Beck

Director of Systems & Technology

Meriwether Godsey, Inc.

Meriwether Godsey

(434) 849-7323 (office)

(434) 258-1775 (cell)


 P Please consider the environment before printing this e-mail


Reply all
Reply to author
Forward
0 new messages