Fix OneDrive not syncing in 8 steps after migration. Check, unlink, close, clear cache, clear data, sign in, test, reset. Steps 1 to 4 fix most cases. Microsoft names the IdentityCache and OneAuth folders. AADSTS50020 means the account is not in that tenant. Rename the old local folder before you unlink or reset.
Why is OneDrive Not Syncing After Migration?
Because the files moved and the PC did not. The sync app on every laptop was signed in to the old tenant and it remembers that account.
A tenant move copies data between two cloud accounts and never reaches into a user's computer to edit who the sync app is signed in as. So the person opens the laptop on Monday and OneDrive not syncing is the first thing they see, because the sync app still points at the old account, the old folder and the old sign-in page. Nothing in the cloud is broken. The device simply has not been told about the new account.
Microsoft's own troubleshooting page describes the same case. After a tenant to tenant move, a UPN change or a password update, OneDrive for Business can stop syncing and the fix starts with signing out and deleting the cached sign-in folders.
Users do not report a migration as late or early. They report it as the Monday their files stopped showing up. The sync step is the part of the project they will actually feel.
Jamie Kaler Marketing Head and Content Strategist, RecoveryTools
Which Sync Errors Appear After a OneDrive Move?
Five show up again and again. Match what the user sees to this table before you touch anything.
| What the user sees | Likely cause | Fix |
|---|---|---|
| Sign in box continues naming the old tenant | Cached identity from the old account | Clear the IdentityCache and OneAuth folders |
| AADSTS50020 account does not exist in tenant | Signing in with an account that is not in that tenant | Sign out, use the new account and clear cached identities |
| OneDrive shows the old account and folder | Old account still linked to the PC | Unlink this PC, then use the new account to sign in |
| Files stuck on pending or red cross | One file blocks the queue | Pause sync, move the file out, resume and move it back |
| Desktop and Documents still sit in the old folder | Folder backup was set up on the old account | Move the files, then set up folder backup on the new account |
Most of these clear with the same steps so the order matters more than the diagnosis. The full order is further down this page.
What does AADSTS50020 Mean for OneDrive Sync After a Move?
Who it suits. Technical user or tenant admin. Extra application. None, because a browser is enough.
AADSTS50020 means the account you signed in with is not a member of the tenant you are trying to reach. Microsoft's own answer is that the account must exist in that tenant, as an external user if need be, before it can sign in.
After a migration there are two common reasons. The user typed the old address into a new tenant's sign in page so the account does not exist there. Or cached identities from the previous tenant are still in use, which Microsoft names as a cause during tenant to tenant moves.
The fix has three parts. Sign out. Remove the cached Microsoft Office identities. Sign in again with the new account. If the error survives all three, ask the tenant admin to confirm the account exists and is licensed. Do not add the old address as a guest to make the message go away, because that connects the user to the wrong tenant on purpose.
How do You Fix OneDrive Not Syncing on One PC?
Who it suits. Non technical user or help desk agent working on one Windows PC. Extra application. None, because Windows built in tools are enough.
Do these in order on one affected PC. They follow Microsoft's published guidance and the first four fix most cases.
- Check the new account in a browser. Sign in to Microsoft 365 with the new address and open OneDrive online. If the files are not there, the problem is the migration, not the PC.
- Unlink the old account. Open OneDrive settings, go to the Account tab, select Unlink this PC and confirm.
- Close OneDrive and Office apps. Make sure nothing is still holding the old identity open.
- Clear the cached identity. Delete the OneAuth and IdentityCache folders under %localappdata%\Microsoft. Microsoft names both for this exact case.
- Remove old saved sign-in data. Press the Windows key and R, enter %localappdata%\Microsoft\OneDrive\settings and delete the PreSignInSettingsConfig.json file.
- Sign in with the new account. Open OneDrive, enter the new address and choose the folder location. Reuse the old folder only if the files inside it are already in the new OneDrive.
- Check the status. Wait for Up to date, then open a few files and confirm they show the right icons.
- Reset OneDrive if it is still stuck. A reset disconnects every sync connection and starts a full sync afterwards. Microsoft says files are not lost.
Sharing links are a separate topic. People who saved a link to a file will find it points at the old tenant, as explained in what happens to SharePoint sharing links after migration.
How do You Reconnect Many OneDrive Users at Once?
Who it suits. Technical admin who guides many users. Extra application. None, because email or chat is enough.
Send one short message with the same steps for OneDrive not syncing at cutover and send it in waves.
Tell users to sign in with the new account, sign in to the sync app at the new location and report anything missing. Microsoft's own post migration steps for its native move say the same three things and add that old shared links continue working through a redirect. A copy works differently, because the new OneDrive is a separate account so tell users plainly which links will not follow them.
Group users by department so the help desk sees a steady queue, not a spike. Give every group one cutover morning and one named contact. If you moved with Microsoft's native route, remember the admin side as well. Remove the trust relationship on both tenants before the source licenses expire and remove the redirect sites after the migration is finished.
For a timeline that fits all this into the cutover week, see the Microsoft 365 migration planning checklist.
What should You Protect Before Users Reconnect OneDrive?
Protect the old local folder until the new OneDrive is confirmed. The folder can have the only copy of a file edited after the copy started.
Before anyone fixes OneDrive not syncing by unlinking or resetting, ask them to save and close their work and note any file they edited in the last day. Do not delete the old sync folder. Rename it, use the new account to sign in to a fresh folder and compare the two before you remove anything.
Frequently Asked Questions
Is OneDrive Not Syncing a PC Problem After a Tenant Move?
Yes. The sync app on the PC is still linked to the old tenant account. The files moved in the cloud but the device retains the old identity, folder link and sign-in data.
Can Cached Identities Keep OneDrive Pointing to the Old Tenant?
Yes. Delete the IdentityCache folder under %localappdata%\Microsoft and the OneAuth folder if needed, then sign in again. Users in a Microsoft community thread reported this fixed a sign-in box that continued naming the old tenant.
Does AADSTS50020 Mean the Account is Not in the Tenant?
Yes. The account used to sign in is not a member of that tenant or cached identities from the previous tenant are still in use. Microsoft says the account must exist in that tenant, as an external user if need be.
Can One File Stop OneDrive With Sync Pending?
Yes. One file or folder that cannot sync blocks the rest of the queue. Microsoft lists three fixes. Show hidden files in File Explorer, copy the files from the stuck folder into a new folder and delete the original or move, rename or upload any .TMP files yourself.
Will Resetting OneDrive Delete My Files?
No. Microsoft says a reset disconnects every sync connection and triggers a full sync afterwards and files are not lost. Still, save your work first and retain the old local folder until you have compared it with the new OneDrive.
Do Old OneDrive Links Work After a Copy?
No. A copy creates a separate account so links that name the old tenant do not follow the files and need to be shared again. Microsoft's native move sets a redirect so old shared links reach the new location.
Can I Clear Cached OneDrive Credentials on Windows?
Yes. Press the Windows key and R, enter %localappdata%\Microsoft\OneDrive\settings and delete the PreSignInSettingsConfig.json file. If that does not help, Microsoft says to uninstall and reinstall OneDrive, which does not delete your files or data.
Where to Start This Week
Write one page of reconnect steps and test it on a single real laptop before cutover.
Use a machine with the old account, Desktop folder backup and a few open Office files. If the page works there, it will work for most users. If it does not, you found the gap before the entire company did and OneDrive not syncing becomes a ten minute fix instead of a help desk spike.
Published 12 October 2026. Sync fixes come from Microsoft Learn and Support pages on OneDrive sync problems after migration, fixing OneDrive sync problems, clearing OneDrive cached credentials, OneDrive stuck on Sync pending and cross-tenant OneDrive migration post migration steps. The AADSTS50020 explanation comes from a Microsoft Q&A answer on AADSTS50020.