Tuesday, October 14, 2008

API Access to Gmail Settings with Google Apps

Posted by Andrew Olsen, Google Apps Team

New admin tool dawns
Settings change like the seasons
For hosted email

When small businesses use Google Apps, it's easy for administrators to help employees configure user settings account-by-account, but this approach doesn't scale up very well for larger companies.

Now that we have a growing list of customers with hundreds and even thousands of employees apiece, offering a streamlined way for admins to configure account settings is essential. With the release of the Google Email Settings API, Premier and Education Edition administrators can programmatically update Gmail settings for their users in bulk by making requests to a GData feed. Modifiable settings include labels, filters, signatures, vacation responders, "send mail as" aliases, interface language, email forwarding, POP, IMAP, and more.

For example, suppose you, an administrator, want to allow a certain set of users at your domain to send an email using the alias support@yourdomain.com, you could do the following:

First you would create a working nickname or group support@yourdomain.com, which could forward e-mails to your support team or to an issue tracking system.
Then you use the API to allow the team to send e-mail as this address. Each time a user joined the support team, you would simply make this POST request to the appropriate URL - like the following request when user liz@yourdomain.com joins the team.

POST https://apps-apis.google.com/a/feeds/emailsettings/2.0/yourdomain.com/liz/sendas


<?xml version="1.0" encoding="utf-8"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:apps="http://schemas.google.com/apps/2006">

<apps:property name="name" value="yourdomain.com Support Team" />
<apps:property name="address" value="support@yourdomain.com" />

</atom:entry>


For all the details, check out the Google Email Settings API documentation.
Related:

No comments: