Christopher Noon
unread,Oct 3, 2025, 4:18:18 PM (2 days ago) Oct 3Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to GAM for Google Workspace
Hello,
I'm trying to migrate a bunch of groups from one workspace to another, which is really just recreating them with the same memberships and settings. For settings I am using an altered version of commands from the wiki:
Export from source:
gam redirect csv ./groupSettings multiprocess csv ./groupList.csv gam print groups select "~email" settings formatjson quotechar "'"
Import at destination:
gam csv ./groupSettings.csv quotechar "'" gam update group "~email" json "~JSON-settings"
This mostly works fine, but on import I end up with many groups not getting updated, instead throwing the error:
ERROR: 400: invalidArgument - Failed request validation in update settings: WHO_CAN_VIEW_MEMBERSHIP_CANNOT_BE_BROADER_THAN_WHO_CAN_SEE_GROUP
The settings were obviously valid on the source tenant, so I am not sure if there's something about the order of the json data, or maybe the existing (default) settings on the destination group. Is there some way to rework the json data to avoid this error? Or maybe I'm doing this in a totally stupid way from the jump?
Thanks in advance,
Chris