Solved

Help Automating Google Groups membership edits

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

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.
Working with spreadsheets can be a daunting task, especially when having to deal with large amounts of data. All you see are rows and rows of numbers and soon your eyes begin to glaze over. Take advantage of the tools in Google Sheets to create prof…
This Micro Tutorial will demonstrate common damaging and frequent mistakes I see in most analytic audits. Most of them are campaign tagging mistakes, so this video will break it down into simple steps.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

786 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