Need command to move group users in a OU

173 views
Skip to first unread message

Shivanshu Veer

unread,
Jan 23, 2024, 3:00:12 AM1/23/24
to google-ap...@googlegroups.com
Hi Team ,

Newd your help in finding a command for moving users of a group to an OU.

I found one command where i could move users using csv file but i need to do it with a group or g sheet would also help.

Regards
Shivanshu veer

Robert Fine

unread,
Jan 23, 2024, 6:43:49 AM1/23/24
to GAM for Google Workspace
Hi Shivanshu, 

for running from a gsheet use this 

gam csv gsheet <File owner email adres> <File ID> <"Sheet Name">  gam update user ~"column name with usernames" ou ~"column name with the new OU's"

Shivanshu Veer

unread,
Jan 23, 2024, 7:03:56 AM1/23/24
to google-ap...@googlegroups.com
thanks 😊 i already made same script which run perfectly fine 

--
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/8ab3f4b6-d617-4386-9cd7-34101bc92277n%40googlegroups.com.

Ross Scroggs

unread,
Jan 23, 2024, 10:20:58 AM1/23/24
to google-ap...@googlegroups.com
See: https://github.com/taers232c/GAMADV-XTD3/wiki/Organizational-Units#add-users-to-an-organizational-unit

This will move all members of the group to the designated OU
gam update ou "/Path/To/OU" add group gr...@domain.com

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.
Reply all
Reply to author
Forward
0 new messages