Change Group ownership / permission in bulk

101 views
Skip to first unread message

Aleksandre Rukhadze

unread,
Apr 2, 2024, 9:46:29 AM4/2/24
to GAM for Google Workspace
Hi folk.
I'm looking for scrip, that will change all owners to managers or regular members inside the group. Without specifing current user.
I've found a command that removes all owners or managers from the group, but then I would have to run few more commands to add them back again.

Thank you

Ross Scroggs

unread,
Apr 2, 2024, 10:42:15 AM4/2/24
to google-ap...@googlegroups.com
See: https://github.com/taers232c/GAMADV-XTD3/wiki/Collections-of-Users#selected-users-from-groups

# Convert all owners to managers
gam update group gr...@domain.com update managers group_users gr...@domain.com owners end

# Convert all owners to members
gam update group gr...@domain.com update members group_users gr...@domain.com owners end

Ross

----
Ross Scroggs



--
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/b652791c-90f9-49d7-8939-40a900c61510n%40googlegroups.com.

Aleksandre Rukhadze

unread,
Apr 3, 2024, 8:03:46 AM4/3/24
to GAM for Google Workspace
Thank you Ross
Reply all
Reply to author
Forward
0 new messages