Solved

Help Automating Google Groups membership edits

Posted on 2016-07-21
3
90 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
BATCH to EXE Converter 2 99
troubles with images in a Google Spreadsheet 2 64
Testing site for http code 200 or curl equiv for Windows 2 100
Powershell- Registry HIVE 6 63
Google Forms is a great platform to easily create polls, questionnaires and surveys. The service allows you to receive data in real-time and is a simple way to conduct large-scale surveys that can be distributed to multiple people.   The platform …
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
This Micro Tutorial demonstrates the importance of annotations in Google Analytics and how they should be used to document changes made to a site, Google updates (Ex: Panda & Penguin), marketing campaigns, and any other events that might have contri…
This Micro Tutorial demonstrates how to create custom reports and the secrets of determine the metrics and dimensions for your data that works best with your needs.

759 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