0

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 ?

Rohit Gupta
  • 4,022
  • 20
  • 31
  • 41
Ramesh Lingappa
  • 2,448
  • 20
  • 33

1 Answers1

1

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.

Jay Lee
  • 13,415
  • 3
  • 28
  • 59
  • This secondary domain were added during initial days when it was available, and i have tried the same with another account and it was working fine. But this API doesn't tell what is the actual problem – Ramesh Lingappa Dec 19 '15 at 11:46
  • We upgraded to Google Apps for Work and tried, still no difference same error. – Ramesh Lingappa Dec 21 '15 at 08:27
  • updated response, may be the case if you registered the domain with Google via GoDaddy or eNom. – Jay Lee Dec 23 '15 at 21:23