Changing Primary Domain for a Google Apps account

Changing the primary domain name on a Google Apps account is a non-trivial process. I recently needed to do this for a customer, and created a console application that makes the job easier.

This works on OS X and Linux; Windows support is unknown (and will not be tested by me). It’s written in Go, so you will need to have a Go development environment set up to build or run it.

Clone the GitHub project:

git clone https://github.com/dougreese/ga-change-primary-domain.git

then follow the instructions in the README to build and run.

Some additional resources:

[md]
* [Before you change your primary domain](https://support.google.com/a/answer/6301932/)
* Short (https://www.youtube.com/watch?v=G8GdNAZE98E) that uses the [APIs Explorer to change the primary domain](https://developers.google.com/apis-explorer/#p/admin/directory_v1/)
* [Google APIs Developer console](https://console.developers.google.com/project) – to set up a project and download your client_secret.json data
* [Google Directory API Go Quickstart](https://developers.google.com/admin-sdk/directory/v1/quickstart/go)
* [Documentation for API Go package](https://godoc.org/google.golang.org/api/admin/directory/v1)
[/md]

Leave a Reply

Your email address will not be published. Required fields are marked *