Get Groups list and categorize whether is dynamic Group and not Dynamic Group

111 views
Skip to first unread message

bambang priantoro

unread,
Aug 28, 2023, 2:58:36 AM8/28/23
to GAM for Google Workspace
Hi Ross and everyone,

I don't recall or maybe my questions is stupid, I do have requirements to get group list using GAM command.
The Prompt that I know is:
gam print groups > groups_list.csv
this command will return the group list email. but how if I want to get the group and categorize, "dynamic group" and group that "not dynamic group", and how to get the total number of groups that gws have.
Thank you for your attentions and help.

Best regards,
Bambang 

Ross Scroggs

unread,
Aug 28, 2023, 11:48:17 AM8/28/23
to google-ap...@googlegroups.com

gam config csv_output_header_filter "email,labels.cloudidentity.googleapis.com/groups.dynamic" redirect csv ./cigroups.csv print cigroups fields labels


Dynamic groups will have True in the labels.cloudidentity.googleapis.com/groups.dynamic column, non-dynamic group will have this field blank

The number of rows in the file minus 1 (header row) is the number of groups.



Ross


--
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/e87efe0a-d0f5-472a-b48c-c180df9589a7n%40googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages