logo
search
OneDrive Error Codes

How to Fix the Account Switch Detected Error in OneDrive for Business

Bushra ParveenBushra Parveen Oct 23, 2026 868 views

Question details

Users are unable to sign in or sync files due to an 'Account Switch Detected' error prompt in the OneDrive client.

How to Fix the Account Switch Detected Error in OneDrive for Business
Product
OneDrive for Business
Device & OS
Windows (with mentions of Mac and iOS)
Scenario
Attempting to sign in, configure, or synchronize files using the OneDrive desktop or mobile application.
Observed behavior
The application blocks the sync process and displays an 'Account Switch Detected' message, remaining unresolved even after basic account unlinking.
Before you start

Ensure you have administrative privileges to edit the Windows Registry and verify that your internet connection is stable before attempting these troubleshooting steps.

Solution 1Recommended

Reset and Unlink Your OneDrive Account

Clearing the local application cache and unlinking your account resolves most basic credential-related conflicts.

1
Unlink this PC

Click the OneDrive cloud icon in your system tray, select the gear icon for Help & Settings, and click Settings. Go to the Account tab and click 'Unlink this PC'.

2
Execute the reset command

Press the Windows key + R to open the Run dialog. Type '%localappdata%\Microsoft\OneDrive\onedrive.exe /reset' and press Enter. The OneDrive icon will disappear and reappear after a minute or two.

3
Sign in again

Once the application restarts, enter your current OneDrive for Business credentials to set up your synchronization folder.

Reset and Unlink Your OneDrive Account
Free Microsoft Office alternative

Experience Seamless Document Management with WPS Office

Tired of dealing with syncing errors and complex account configurations? WPS Office offers a lightweight, highly compatible alternative to Microsoft Office. With built-in cloud synchronization that's easy to manage, you can create, edit, and save documents effortlessly without the hassle.

  1. 1. Download the installer: Visit the official WPS Office website and click the download button for your operating system.
  2. 2. Install WPS Office: Run the downloaded executable file and follow the straightforward on-screen instructions to complete the setup.
  3. 3. Open and sync your files: Launch WPS Office, sign in to activate your free WPS Cloud storage, and easily open your existing Microsoft Office files.
Fully compatible with Microsoft Office formats, including .docx, .xlsx, and .pptx.Built-in, hassle-free WPS Cloud for seamless document synchronization across all your devices.Lightweight architecture that consumes fewer system resources and loads significantly faster.Familiar user interface allowing you to work efficiently right away without a steep learning curve.
microsoft office alternative - wps office

Frequently Asked Questions

Will deleting the OneDrive registry key delete my synced files?

No. Deleting the OneDrive folder under the Registry Editor only removes configuration data and cached account settings. Your actual files stored locally and in the cloud remain completely safe and untouched.

Why do I get the 'Account Switch Detected' error on Mac and iOS devices?

On Apple devices, this error is usually caused by outdated or conflicting credentials saved in the macOS Keychain or iOS system cache. Resolving it typically requires signing out of all Microsoft apps, clearing Microsoft-related entries in Keychain Access, and reinstalling the app.

Can changing my sign-in ID or email address trigger this error?

Yes. If your organization's IT administrator recently changed your User Principal Name (UPN) or primary email address, the local OneDrive sync app may detect a mismatch between the new ID and the old cached credentials, triggering the switch detected alert.

What should I do if resetting and registry fixes don't work?

If local troubleshooting fails, try completely uninstalling and reinstalling the OneDrive sync app. You should also try logging into OneDrive for Business via a web browser to verify whether the issue is with your local device or a server-side account lock.