help me automate GAM syntax for Group Update

113 views
Skip to first unread message

Jon Mitchell

unread,
Feb 24, 2015, 11:01:31 AM2/24/15
to google-ap...@googlegroups.com
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.  

Any Ideas or places I should look?


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

Sandip Shah

unread,
Feb 24, 2015, 2:59:52 PM2/24/15
to google-ap...@googlegroups.com
I would stick with GADS if you have access to the LDAP server.  Make things easier.

If you are running this on any of the Linux flavors, then setup a script with a cron job.  On windows, I believe there is something similar (task runner?).

SS


--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/2e493917-392f-485a-a2f8-3c9790ef4344%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jon Mitchell

unread,
Feb 24, 2015, 3:45:11 PM2/24/15
to google-ap...@googlegroups.com
Okay I got it work via a batch file and scheduling a task.

Create .bat with contents below

gam batch
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


Then schedule the task pointing to the .bat and make sure you tell it to run within that folder.  

TY for all the help...
Reply all
Reply to author
Forward
0 new messages