So I am trying to automate a process as people come and go... I have created the groups and can confirm that all the commands are working. Currently I have to run the lines in GAM and would like schedule it.
gam update group all...@XXXXX.org sync member ou_and_children "/Staff
gam update group class-...@XXXXX.org sync member org "/Students/2018
gam update group class-...@XXXXX.org sync member org "/Students/2017
gam update group class-...@XXXXX.org sync member org "/Students/2016
gam update group class-...@XXXXX.org sync member org "/Students/2015