Problem statement
This article explains why the custom domain was still being used in email links(e.g. verification emails), although the tenant had lost the ability to use the custom domains.
The following symptoms may be noted:
- Receiving
403
responses - Unable to make web or API calls
Cause
- There is a tenant flag
"enable_custom_domain_in_emails"
that changes to “true” or “false” with this toggle.
Solution
Since this toggle cannot be switched on/off because of the lack of a custom domain, tenant settings will need to be patched.
Use the Management API endpoint to update the tenant settings with the following body:
{
"flags": {
"enable_custom_domain_in_emails": false
}
}