Microsoft 365 Migration

Fix Error AADSTS50107: GoDaddy to Microsoft 365 Migration

Phi Hung VoPhi Hung Vo Oct 22, 2026 869 views

Question details

The user needs to resolve intermittent sign-in failures and authentication errors after moving business email from GoDaddy to Microsoft 365.

How to Fix Error AADSTS50107 After GoDaddy to Microsoft 365 Migration
Product
Microsoft 365
Device & OS
not provided
Scenario
Migrating a hosted email domain from GoDaddy's syndicated environment to a direct Microsoft 365 tenant.
Observed behavior
Users experience intermittent sign-in and Office application failures accompanied by Error AADSTS50107, which states that the requested federation realm object does not exist.
Before you start

Ensure you have global administrator access to your new Microsoft 365 Admin Center and the login credentials for your domain's DNS hosting provider before making changes.

Solution 1Recommended

Update Microsoft 365 DNS Records at Your Host

Updating your DNS records ensures that Microsoft 365 can properly authenticate your domain and route emails, clearing the federation realm mismatch.

When migrating away from GoDaddy, the domain must be properly defederated and the DNS records strictly updated to point to Microsoft's standard servers.

1
Access DNS Management

Log in to your DNS hosting provider's dashboard (e.g., GoDaddy) and navigate to the 'DNS Management' or 'DNS Settings' page for your domain.

2
Remove Old Federation Records

Locate and delete the old GoDaddy syndicated MX and TXT records that are interfering with the new Microsoft 365 setup.

3
Add Microsoft 365 Records

Click 'Add New Record' to input the required MX, TXT, and CNAME records exactly as provided in the Setup > Domains section of your Microsoft 365 Admin Center.

4
Verify Domain in Microsoft 365

Return to the Microsoft 365 Admin Center, go to Settings > Domains, select your domain, and click 'Check Health' to ensure the DNS changes have propagated.

Update Microsoft 365 DNS Records at Your Host
DNS Propagation Time: DNS changes can take anywhere from 15 minutes to 48 hours to fully propagate globally across the internet.
Free Microsoft Office alternative

Avoid Cloud Migration Hassles with WPS Office

If you are frustrated by complicated server migrations, federation errors, and locked-out user accounts, WPS Office offers a straightforward, offline-capable productivity suite that doesn't rely on complex cloud domain setups.

No complex domain federation required—install and start working immediatelyFully compatible with Microsoft Word, Excel, and PowerPoint file formatsAvoid downtime caused by AADSTS50107 or other server-side sign-in errorsLightweight, incredibly fast, and free to use with a familiar interface
microsoft office alternative - wps office

Frequently Asked Questions

What causes error AADSTS50107 after migrating from GoDaddy to Microsoft 365?

This error occurs because the domain was previously part of GoDaddy's syndicated Office 365 environment. When migrating to a direct Microsoft 365 tenant, the domain must be completely "defederated." If Azure Active Directory still looks for the old GoDaddy federation realm, it returns the AADSTS50107 error.

Will I lose my business emails if the migration system returns an error?

Your emails are generally safe. Error AADSTS50107 is an authentication and sign-in issue, not a data deletion issue. As long as your MX records are pointed correctly, incoming emails will queue or arrive at the new server, waiting for you to regain login access.

Do I have to migrate my website to Microsoft to fix this DNS issue?

No. You can leave your website hosted with its current provider. You only need to manage the DNS records (specifically MX, TXT, and mail-related CNAME records) at your DNS hosting provider to route email correctly to Microsoft 365.