How to defederate Microsoft 365 from GoDaddy without losing email
If your business bought Microsoft 365 through GoDaddy, GoDaddy still controls more of it than most owners realize: your sign-ins, your billing, your email security and even who can reset a password. I recently moved a company with 37 licensed users off GoDaddy to direct Microsoft 365, including 26 former employee mailboxes converted to shared mailboxes and 21 former employees' OneDrive files moved to SharePoint, without losing any email. This guide is exactly how I did it, including the commands, the order that matters and every problem I hit along the way.
The short version: save former employees' data first, create a cloud-only emergency admin, buy direct Microsoft licenses and assign them, switch the domain from Federated to Managed from that emergency admin, reset everyone's password, move email security and mail records to Microsoft, then clean up and cancel GoDaddy last.
What GoDaddy controls when you buy Microsoft 365 through them
In the tenant I moved, GoDaddy had its hands in six places:
- Sign-ins. The email domain was set to Federated, so GoDaddy's systems handled every user sign-in, not Microsoft.
- Billing. Every license was billed by GoDaddy, not Microsoft.
- Email security. GoDaddy's "Advanced Email Security" add-on was Proofpoint. Incoming mail went through Proofpoint first, and a GoDaddy rule sent all outgoing mail back out through it.
- DNS. The mail records were managed through GoDaddy and locked from normal editing.
- Admin control. Basic tasks like resetting a password or creating a user were blocked in the Microsoft admin center.
- Outside admins. Reseller and outside IT company admin accounts were still in the tenant.
The goal is to remove every one of those, without interrupting email, and leave you with a normal Microsoft 365 tenant you fully own.
The one thing that makes or breaks it
You can't remove GoDaddy's federation while signed in as a user whose sign-in depends on it. If you run the switch as your normal admin on your own domain (like admin@yourdomain.com), it fails with Insufficient privileges / Authorization_RequestDenied (403), even when that account is a full Global Administrator.
The fix is a cloud-only Global Administrator on your tenant's built-in domain, like breakglass@yourtenant.onmicrosoft.com. Its sign-in doesn't go through GoDaddy, so switching the domain can't lock it out. Set this up before anything else. Everything after it is order and cleanup.
Step 1: Save former employees' data first
Do this before you remove a single license or account. A deleted user's OneDrive is kept for 30 days by default, and an unlicensed OneDrive goes read-only at 60 days and is archived at 93, after which getting the files back costs money.
- Move their OneDrive files to SharePoint, like a shared document library for the department. For very large OneDrives, use Microsoft's free SharePoint Migration Tool on a fast connection instead of dragging files in a browser.
- Convert their mailboxes to shared mailboxes. Current staff keep access to the history, and a shared mailbox usually needs no license. The exceptions are mailboxes over 50 GB, with an archive, or on legal hold.
- Only then remove their licenses. No former employee's data should ever be lost.
Step 2: Set up your safety net
- Make sure at least two trusted people are Global Administrators with MFA set up.
- Create or claim a cloud-only emergency admin on
yourtenant.onmicrosoft.com. Give it a strong password stored somewhere safe, set up MFA, and confirm it's a Global Administrator. - Sign in to it on its own and test it before you change anything. It stays as your permanent emergency account afterward.
Step 3: Buy licenses directly from Microsoft
Buy new licenses billed by Microsoft and assign them to every active account before you cancel GoDaddy, so nobody loses service. Match the license to the person: for example, Microsoft 365 Business Premium for staff who need Office, Teams and device management, and Exchange Online Plan 1 for email-only accounts like board members or role mailboxes.
Then run a license audit: no active mailbox should still be sitting on a GoDaddy license, and every former employee should already be a free shared mailbox.
Step 4: Switch the domain from Federated to Managed
This is the defederation itself. Older guides use the MSOnline PowerShell module, which Microsoft has retired. Use Microsoft Graph PowerShell instead, and run it signed in as the cloud-only emergency admin:
Connect-MgGraph -Scopes "Domain.ReadWrite.All","Directory.AccessAsUser.All","User.ReadWrite.All"
# Switch the domain to Managed (this is the defederation)
Update-MgDomain -DomainId yourdomain.com -AuthenticationType "Managed"
# Check it worked (should say Managed)
Get-MgDomain -DomainId yourdomain.com | Select-Object Id, AuthenticationType
Microsoft documents the command on its Update-MgDomain page. Keep GoDaddy active until everything below is tested. Don't cancel anything on day one.
Step 5: Reset passwords
Switching to Managed means the old passwords no longer work, so every active user needs a new one. Reset your own first and make sure you can sign in before anyone else. If the admin center still won't let you reset passwords, do it through Graph:
Update-MgUser -UserId "user@yourdomain.com" -PasswordProfile @{ Password = "TempStrongPassword!"; ForceChangePasswordNextSignIn = $true }
- Hand out temporary passwords in person, not by email. You can't email a password to an account whose sign-in you just changed.
- Each person sets up MFA again the first time they sign in.
- Doing the cutover the night before people come in gives you time to catch problems and hand out passwords in the morning.
Step 6: Replace Proofpoint with Microsoft's email security
Business Premium includes it, so there's nothing extra to buy:
- Microsoft Defender for Office 365: turn on the Standard preset security policy for everyone. Add your executives as protected users and your domain as a protected domain for impersonation protection, and turn on Safe Links and Safe Attachments.
- Quarantine notices: turn on end-user quarantine notifications so people can release their own held mail.
- Encrypted email: replace GoDaddy's encryption with Microsoft Purview Message Encryption. A mail rule that encrypts any message with
[encrypt]in the subject is easy for staff to remember.
Step 7: Move email over and set up SPF, DKIM and DMARC
Do the incoming and outgoing changes together, as one planned cutover:
- Incoming: point the MX record at Microsoft instead of Proofpoint. If GoDaddy has the DNS locked, use the Microsoft 365 admin center's option to let Microsoft add your DNS records, which pushes the right records through GoDaddy for you.
- Outgoing: turn off, then delete, the GoDaddy rule that sent outgoing mail through Proofpoint.
- Test both directions: send in from an outside account and send out to an outside account.
The records you end up with look like this. Always copy the exact values from your own admin center:
| Record | Name | Value |
|---|---|---|
| MX | @ | yourdomain-com.mail.protection.outlook.com |
| SPF (TXT) | @ | v=spf1 include:spf.protection.outlook.com -all |
| CNAME | autodiscover | autodiscover.outlook.com |
| DKIM (CNAME) | selector1._domainkey | selector1-yourdomain-com._domainkey.yourtenant.onmicrosoft.com |
| DKIM (CNAME) | selector2._domainkey | selector2-yourdomain-com._domainkey.yourtenant.onmicrosoft.com |
| DMARC (TXT) | _dmarc | v=DMARC1; p=none; rua=mailto:admin@yourdomain.com |
Turn on DKIM until it shows Valid. Start DMARC at p=none to watch for problems, then tighten it to p=reject after about two weeks.
Step 8: Clean up and cancel GoDaddy, last
- Delete GoDaddy's leftover mail rule and both GoDaddy connectors.
- Delete GoDaddy's old DMARC record, so only yours is left.
- Remove admin rights and block sign-in on any leftover outside IT company or reseller admin accounts.
- Check Enterprise applications for anything left over from GoDaddy or Proofpoint.
- Cancel the GoDaddy Microsoft 365 subscription: turn off auto-renew, then open a support request to end it early and ask about a refund for the unused time.
Leave these alone: your domain registration and DNS hosting can stay at GoDaddy. Also leave the GoDaddy partner relationship until any refund is settled. The two "partner app for godaddy.com" entries in your Global Admin list belong to it, and removing the partner relationship under Settings > Partner relationships clears both at once.
Every problem I hit, and what fixed it
The switch fails with 403 Authorization_RequestDenied
You're signed in as an admin on your own federated domain. Sign in as the cloud-only emergency admin on yourtenant.onmicrosoft.com, with the Directory.AccessAsUser.All scope, and run it again.
It still fails after signing in as the emergency admin
PowerShell quietly reused the old sign-in. Disconnect first, then connect again and sign in fresh. If Windows asks to register the device, choose No, this app only. Signing in with a device code is a good fallback.
Disconnect-MgGraph
Connect-MgGraph -Scopes "Domain.ReadWrite.All","Directory.AccessAsUser.All","User.ReadWrite.All"
# Fallback: sign in with a code on another device
Connect-MgGraph -UseDeviceAuthentication -Scopes "Domain.ReadWrite.All","Directory.AccessAsUser.All","User.ReadWrite.All"
The admin center won't let you reset passwords or create users
That's GoDaddy's management lock. Use Graph PowerShell (Update-MgUser) instead. It works even while the lock is in place.
DMARC acts strange
There are two DMARC records: yours and an old GoDaddy one. A domain can only have one. Delete GoDaddy's.
A test email never arrives
Check quarantine first. When I sent a test from a personal account using an executive's name, impersonation protection caught it, which is exactly what it's supposed to do. Release it, and only loosen the policy if real senders keep getting caught.
The first encrypted test arrives as plain text
A new mail rule takes a few minutes to start working. Wait about 15 minutes and send it again.
Someone gets locked out after MFA is turned on
In Entra, open the user, go to Authentication methods and choose Require re-register MFA. They set it up fresh at their next sign-in.
Mistakes to avoid
- Starting without a cloud-only emergency admin.
- Running the switch from your federated admin account.
- Removing licenses before former employees' files and mailboxes are saved.
- Cancelling GoDaddy before everyone is on direct licenses and email is tested.
- Changing the MX record and the outgoing mail rule at different times.
- Leaving two DMARC records in place.
- Emailing temporary passwords instead of handing them out.
After the move: securing the tenant
Once you own the tenant, you can finally turn on the protection GoDaddy kept out of reach: MFA for everyone through Conditional Access (with the emergency admin excluded), blocking old sign-in methods, and managing company computers with Intune, including BitLocker encryption and Defender. That's a project of its own, but it's the real payoff of leaving GoDaddy.
When to get help
This is very doable for an experienced admin, but it touches everyone's email at once. It's worth bringing in help if you don't have Global Administrator access, your users sync from an on-site server, you have a lot of former employees with files to save, or you just can't afford a mistake. My GoDaddy Microsoft 365 defederation service covers the whole job, with the cutover on a weekend.
I'm not affiliated with GoDaddy or Microsoft. These steps reflect what worked as of November 2026, and Microsoft changes its tools and screens often, so always check the current documentation.
Want it done for you?
I'm Matthew, an IT technician based in Glen Cove. I defederate businesses from GoDaddy to direct Microsoft 365, including former employee cleanup, Microsoft's email security and DKIM and DMARC, with the cutover on a weekend. Fully insured. Projects start at $1,500, after a free review of your tenant. See full pricing.
Common questions
What does it mean to defederate Microsoft 365 from GoDaddy?
When you buy Microsoft 365 through GoDaddy, your email domain is usually set to Federated, which means GoDaddy's systems handle everyone's sign-in. Defederating switches the domain to Managed, so sign-ins go straight to Microsoft. Your mailboxes, files and Teams stay in the same place; only who controls and bills the account changes.
Will we lose email when we move off GoDaddy?
No, not if it's done in the right order. The mailboxes never move. New Microsoft licenses are assigned before GoDaddy is cancelled, the domain is switched to Managed, and the mail records are repointed in one planned cutover. GoDaddy stays active until everything is tested.
Why does the defederation command fail with Authorization_RequestDenied?
Usually because you're signed in with an admin account on your own domain, which is still federated through GoDaddy. That account can't remove the federation its own sign-in depends on. Run the command from a cloud-only Global Administrator on your tenant's built-in onmicrosoft.com domain instead.
Do I need to move my domain away from GoDaddy?
No. The domain registration and DNS can stay at GoDaddy. Only the Microsoft 365 subscription gets cancelled. Your website and domain keep working as they are.
What happens to former employees' email and files?
Convert their mailboxes to shared mailboxes, which are usually free under 50 GB, and move their OneDrive files to SharePoint before you remove any license. A deleted account's OneDrive is kept for 30 days by default, and an unlicensed one goes read-only after 60 days, so the order matters.
How long does a GoDaddy defederation take?
The cutover itself is one evening for a small company. Plan a few days around it for buying licenses, cleaning up former employees, and testing, plus about two weeks of email monitoring before tightening DMARC.