0
votes

I have a Google Apps Free Account with one primary domain and an secondary domain.

Recently I came across Google Admin SDK Directory API, where the option to switch the primary domains is available through the API.

Directory API - Customer Update

I used the "Try Now" section to use the API, I did log in and I authorized with appropriate scopes and provided following properties,

customerKey - my_customer

in Request Body

{"customerDomain":"domainB.com"}

but got following response,

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "invalid",
    "message": "Invalid Input"
   }
  ],
  "code": 400,
  "message": "Invalid Input"
 }
}

Any idea on this ?

1

1 Answers

1
votes

Google Apps Free / Standard Edition does not support secondary domains and thus does not support change of primary / secondary domain.

Additionally, primary domain change does not work if you registered the domain with Google, you'll need to transfer to a different domain registrar first.

See Google's help article for other considerations.