Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 128
  • Last Modified:

Help Automating Google Groups membership edits

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
BRT-Tech
Asked:
BRT-Tech
  • 2
1 Solution
 
Koen Van WielinkIT ConsultantCommented:
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
 
BRT-TechAuthor Commented:
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
 
BRT-TechAuthor Commented:
Thanks for your response.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now