Can GAM update a setting for ALL our groups at once?

2,022 views
Skip to first unread message

Allen Schmidt

unread,
Jul 31, 2012, 2:31:58 PM7/31/12
to google-ap...@googlegroups.com
Just curious if this is possible. Seems that with the new look, many of our group settings have changed. 
For most of our groups, we only use them as email distributions lists. And as such, we don't want anything stuck in a moderation queue and for the vast majority, allow anyone to post to the addresses.

Would be great to be able to touch a handful of settings and make them the same across our domain for all groups.

Thanks

Allen

Jay Lee

unread,
Aug 20, 2012, 9:21:05 AM8/20/12
to google-ap...@googlegroups.com
GAM can do this but it'll take a few steps:

1) Use "gam print groups > mygroups.csv" to get all your groups written to mygroups.csv file.

2) Figure out what settings you want changed. GAM can't change group modification settings (turn spam filter off) since there's no API to do it but GAM can configure who can post.

3) with a shell script, loop through all the groups in mygroups.csv and make the changes with GAM. See bulk operations for suggestions on how to do this.

Regards,

Jay Lee
LCS Deployment Lead   |  ⚡ Dito




Allen

--
You received this message because you are subscribed to the "Google Apps Manager" group.
To post to this group, send email to
google-ap...@googlegroups.com
To unsubscribe from this group, send email to
google-apps-man...@googlegroups.com
For more options, visit this group at
https://groups.google.com/forum/#!forum/google-apps-manager

Jason L.

unread,
Apr 25, 2013, 9:50:08 AM4/25/13
to google-ap...@googlegroups.com
I was able to do it like this running the print groups command to get the CSV then these as three ps1 files
$list = Import-Csv groups.csv
foreach ($entry in $list)
  {
    .\gam.exe update group $($entry.GroupID) settings who_can_post_message anyone_can_post
  }
----------
$list = Import-Csv groups.csv
foreach ($entry in $list)
  {
    .\gam.exe update group $($entry.GroupID) settings who_can_view_membership all_in_domain_can_view
  }
-----------------------
$list = Import-Csv groups.csv
foreach ($entry in $list)
  {
    .\gam.exe update group $($entry.GroupID) settings show_in_group_directory true
  }
Reply all
Reply to author
Forward
0 new messages