Google Apps Scripts & Shared Contacts Access to a Google Apps for Education

1.6k Views Asked by At

Does anyone know if there is a way to access the Shared Contacts on a Google Apps for Education (or Business for that matter) domain via Google Apps Scripts? I am currently using the Shared Contacts script () to manage them but it is rather tedious.

We currently have 2 Google Apps Domains (one for staff and one for students). The only way for staff to show up on the student domain is by adding the staff to the shared contacts on the student domain. Likewise, the only way for students to show up on the staff domain is by adding the students to the shared contacts on the staff domain.

It would be great to be able to manage all of this via Google Spreadsheets and an apps script that runs once a day.

2

There are 2 best solutions below

4
On

Have you had a look at that (quite) new domain service?

You can easily retrieve all users in one domain and add them as contact using the contact service in the other domain. Then you just need to set up a trigger that runs the function every day to update the lists.

0
On

This is a good post detailing how to do it in Apps Script - http://www.jellybend.com/2012/12/12/manage-google-apps-domain-shared-contacts-with-google-apps-script/

There are also a number of free applications that put a friendly user interface on this process, like FlashPanel - http://www.flashpanel.com/feature/shared-contacts/