Solved

Help Automating Google Groups membership edits

Posted on 2016-07-21
3
52 Views
Last Modified: 2016-07-26
I would like to find a way to automate a task that I need to do repeatedly every Friday and Sunday.  Our firm uses Gmail and we use Google Groups for inter-company group mailings. One group is used to receive leads from several sources on the internet.  We have several weekend employees that rotate coverage to respond to these leads. Each employee covers one weekend per month.

So that their inbox isn't loaded with leads from days they are not responsible for lead coverage, I add them to the group each Friday afternoon and then delete them from the group each Sunday morning.  It is this adding and removing members from the Google Group that I would like to automate.  Ideally there would be a script that reads a text file of dates and names. The source file could be formatted as needed to simplify the script.

The script could run on my PC which is always on.  I am a domain admin for GMail.

I'm familiar with old-school batch scripting under DOS and Unix, but haven't kept up with the modern scripting languages.  Is this something that is feasible?  If so, what language would server best?

I know a few coders and could probably get this written if it's not too complicated.  I just need to know enough to explain what I need to a coder.

Thanks :)
0
Comment
Question by:BRT-Tech
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
Koen Van Wielink earned 500 total points
Comment Utility
Javascript is fairly easy to use. You can write a script and schedule this using a trigger to run each Friday and Sunday at a specific time. Since you can run it on your machine and you're an admin your account authentication can be used for this.
I would create a small Google Sheet that contains for each week the list of names to be included into the group. The script can then start by removing all the members (make sure that at least 1 administrator remains, this could be your own account, otherwise the group will be deleted I think), and then add all the members for the given week. If you add 1 tab in the Google sheet for each week number in the month for example, it should be really straightforward to extract this information.
If you have a coder available that knows Apps Script (Google's version of Javascript, almost the same) he or she should be able to figure this out fairly quickly with the online documentation. I've written some scripts myself during the last year and I have no coding background either so it's not that hard. You would need the Admin SDK Directory Service to perform the tasks you need.
1
 

Author Comment

by:BRT-Tech
Comment Utility
Thanks Koen -

Maybe I'll give it a shot myself.  If not; I'll ask some colleges if they can write it.

I will award the points  on Monday.  If anyone else wants to chime in before then for a split, feel free.
0
 

Author Closing Comment

by:BRT-Tech
Comment Utility
Thanks for your response.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I'm Dumb-phoned(ed) Last week, I noticed this message when adding events to my Google Calendar: On June 27th (2015), Google is removing SMS as a notification option for Google Calendar events.  Their assumption is that enough people have smart p…
Learn about cloud computing and its benefits for small business owners.
This Micro Tutorial will demonstrate how marketers can use the Mobile Emulation Tool in Chrome Developer Tool. This will let you preview your site on any mobile device.
This Micro Tutorial will demonstrate how to use comments in Google Docs. You will learn how to create, edit, and delete a comment.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now