Skip to content

Instantly share code, notes, and snippets.

@OR13
Last active June 5, 2018 20:28
Show Gist options
  • Save OR13/4a1d768aae96d7508dfd to your computer and use it in GitHub Desktop.
Save OR13/4a1d768aae96d7508dfd to your computer and use it in GitHub Desktop.
How To Change Your Google Apps Primary Domain

How To Change Your Google Apps Primary Domain

These instructions will allow you to change your google apps for business primary domain without writing an code...

  1. Open this page in a new tab: https://developers.google.com/admin-sdk/directory/v1/reference/customers/update
  2. Click Try It
  3. Make sure you’re logged into your relevant Google account (you should see your mail address in the top right corner).
  4. Next to customerKey type: my_customer
  5. Next to fields type: customerDomain
  6. Click next to ‘Request Body’, and in the –add a property– drop-down that appears, choose: customerDomain
  7. The following will magically appear: “customerDomain”:
  8. Type your secondary domain in the box next to “customerDomain”: (leave out the www. bit, just type in yourdomainname.com)
  9. Click Authorise and Execute
  10. Select the Default Scope

Read More

https://productforums.google.com/forum/#!topic/apps/5EcHKfRHRhw;context-place=forum/apps http://www.saysjen.com/swapping-your-google-apps-primary-domain-to-your-secondary-domain-for-dummies/

@aijogja
Copy link

aijogja commented Dec 22, 2017

I also got error New domain name is not a verified secondary domain. Even I have verified the domain

@Triloworld
Copy link

Not even on trial period:

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "conditionNotMet",
    "message": "Changing primary domain is not allowed in trial subscription period."
   }
  ],
  "code": 412,
  "message": "Changing primary domain is not allowed in trial subscription period."
 }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment