Solution: Dynamic Group Query Export and Update

48 views
Skip to first unread message

Martin Hawksey

unread,
Feb 11, 2025, 5:45:22 AM2/11/25
to GAM for Google Workspace
Hello all,

Sharing a couple of commands I found useful for exporting and updating Google Group Dynamic Queries. This was pieced together from different parts of the documentation, but I didn't find a single source with these (sharing for my future self :)

Get existing dynamic group queries

gam redirect csv ./cigroups.csv print cigroups query "'cloudidentity.googleapis.com/groups.dynamic' in labels" fields dynamicgroupmetadata


Modify the cigroups.csv as required

Update Dynamic group queries 

gam csv ./cigroups.csv gam update cigroup "~email" dynamic "~dynamicGroupMetadata.queries.0.query"


  Hopefully useful and welcome and feedback/questions

Tammy Spicer

unread,
May 8, 2026, 2:02:53 PM (10 days ago) May 8
to GAM for Google Workspace
This is awesome! Thank you for sharing.
Reply all
Reply to author
Forward
0 new messages