Solved

Help Automating Google Groups membership edits

Posted on 2016-07-21
3
76 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 13

Accepted Solution

by:
Koen Van Wielink earned 500 total points
ID: 41724179
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
ID: 41725235
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
ID: 41729956
Thanks for your response.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Recursively Delete Files 5 94
Auto-indent certain lines in Notepad++ 10 112
Powershell  and PSExec = Password failure 5 24
storing csv file in table variable in Python 2 28
Last month, Google released a new update for Google Sheets. This new update offers new ways to visualize and analyze data. Use this article to learn how to take advantage of the new tools now available for charts, cells and collaboration with Google…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
This Micro Tutorial demonstrates how to quickly find related content for YourTango's posts using MozBar Chrome extension.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

830 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