I'm using Google Apps and I'm trying to add a domain alias to a secondary domain I own.
According to this Google Apps blog article "the [domains] API lets you programmatically add aliases for any domain, primary or secondary, but aliases for secondary domain can only be added via the API."
I tried the API on the APIs explorer (at the bottom of the page) but only managed to add a domain alias to my primary domain and not to my secondary.
Using a POST method I've tried:
{
"domainName": "alias.domain.com",
"domainAliases": [
{
"parentDomainName": "secondary.domain.com",
"verified": true
}
]
}
Any light on the matter would be greatly appreciated.
Regards,
Jo
Click the Accounts and Import or Accounts tab. In the "Send mail as" section, click Add another email address. Enter your name and your alias address. Check the Treat as an alias box.
user alias domains allow users to send mail with an email address at another domain. For example, you might have 2 different products each with their own domain. Having a user alias domain for these domains will allow people to send mail using an address from either domain.
If the APIs & services page isn't already open, open the console left side menu and select APIs & services. On the left, select Domain verification. Click Add domain. Enter the domain that you previously registered with Google Search Console.
A Second Level Domain (SLD) is the part of the domain name that is located right before a Top Level Domain (TLD). For example, in mozilla.org the SLD is mozilla and the TLD is org . A domain name is not limited to a TLD and an SLD.
You need to use the DomainAliases API:
https://developers.google.com/admin-sdk/directory/v1/reference/domainAliases/insert
From there enter:
customer = your immutable ID
domainAliasName = the alias to add
parentDomainName = the secondary domain to which you want to add an alias
That should be it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With