Sync Button Opens the Wrong OneDrive Account: OneDrive for Business Fix
🔍 WiseChecker

Sync Button Opens the Wrong OneDrive Account: OneDrive for Business Fix

You click the Sync button in Microsoft 365 or SharePoint Online, and OneDrive for Business opens the wrong account. This happens when your local OneDrive client is signed into a personal Microsoft account or a different work account than the one you use in the browser. The underlying cause is that the Sync button passes a URL to the default OneDrive client, which opens the folder associated with the account that is currently signed in. This article explains why the account mismatch occurs and provides step-by-step methods to force OneDrive to sync the correct account.

Key Takeaways: How to Fix the Wrong OneDrive Account When Syncing

  • OneDrive Settings > Account > Unlink this PC: Removes all linked accounts so you can sign in with the correct work or school account.
  • Windows Credential Manager > Windows Credentials: Delete stale OneDrive credentials that cause the wrong account to load.
  • OneDrive.exe /reset: Resets the sync client without deleting local files and clears cached account data.

ADVERTISEMENT

Why the Sync Button Opens the Wrong OneDrive Account

The Sync button in SharePoint Online or Microsoft 365 generates a URL that points to a specific document library. When clicked, the browser passes this URL to the local OneDrive sync client. The sync client then opens the folder for the account that is currently authenticated in the client, not the account you are using in the browser.

This mismatch occurs in three common scenarios:

Multiple accounts signed in to OneDrive. If you have both a personal OneDrive account and a OneDrive for Business account on the same Windows PC, the sync client may default to the personal account. The Sync button only opens the first account it finds.

Stale Windows credentials. When you sign out of OneDrive, the underlying credentials remain in Windows Credential Manager. The next time you click Sync, Windows reuses those old credentials and opens the wrong account.

Browser and sync client are signed into different tenants. You might be signed into your work account in the browser but the OneDrive client is still signed into a previous employer’s tenant or a personal account. The Sync button cannot switch tenants on its own.

Steps to Force OneDrive to Open the Correct Account

Use the following methods in order. Test after each step by clicking the Sync button in SharePoint Online. If the issue persists, move to the next method.

Method 1: Unlink and Relink the Correct Account in OneDrive

  1. Open OneDrive settings
    Right-click the OneDrive cloud icon in the system tray near the clock. Select Settings. If the icon is missing, open OneDrive from the Start menu and then right-click the icon.
  2. Go to the Account tab
    In the Microsoft OneDrive dialog, click the Account tab at the top.
  3. Click Unlink this PC
    Under your account name, click Unlink this PC. Confirm when prompted. This removes the current account association but leaves your local files intact.
  4. Restart OneDrive
    Close the settings dialog. OneDrive will restart automatically. If it does not, open OneDrive from the Start menu.
  5. Sign in with the correct work or school account
    When the OneDrive setup window appears, enter the email address of the OneDrive for Business account you want to sync. Click Sign in and complete authentication.
  6. Test the Sync button
    In your browser, navigate to the SharePoint document library or Microsoft 365 team site. Click the Sync button. The correct OneDrive for Business folder should open.

Method 2: Clear Stale Credentials from Windows Credential Manager

  1. Open Credential Manager
    Press the Windows key, type Credential Manager, and select the app from the search results.
  2. Click Windows Credentials
    In the Credential Manager window, click Windows Credentials.
  3. Find OneDrive credentials
    Scroll down to the Generic Credentials section. Look for entries that contain OneDrive C2C or MicrosoftOffice16_Data:ADAL. These are the cached tokens for OneDrive and Office.
  4. Remove each stale entry
    Click the arrow to expand the entry. Click Remove. Confirm the deletion. Repeat for every entry that references OneDrive, SharePoint, or the incorrect account email.
  5. Restart OneDrive
    Right-click the OneDrive cloud icon and select Exit. Open OneDrive from the Start menu. Sign in with the correct work or school account.
  6. Test the Sync button
    Click Sync in SharePoint Online. The correct account should now open.

Method 3: Reset the OneDrive Sync Client

  1. Close OneDrive
    Right-click the OneDrive cloud icon and select Exit. Wait 30 seconds.
  2. Open the Run dialog
    Press Windows key + R.
  3. Run the reset command
    Type %localappdata%\Microsoft\OneDrive\onedrive.exe /reset and press Enter. A command prompt window flashes briefly. This does not delete your local files.
  4. Wait for OneDrive to restart
    OneDrive may restart automatically after a few seconds. If it does not, open OneDrive from the Start menu.
  5. Sign in with the correct account
    Enter your work or school email and complete the sign-in process.
  6. Test the Sync button
    In your browser, click Sync on the document library. The correct account opens.

ADVERTISEMENT

If OneDrive Still Opens the Wrong Account After These Fixes

OneDrive opens a personal account instead of a work account

When both a personal OneDrive and OneDrive for Business are installed, the Sync button may always open the personal account. The fix is to unlink the personal account entirely. Open OneDrive settings, go to Account, and click Unlink this PC for the personal account. Then sign in only with your work or school account. If you need the personal account, use the web version only.

The Sync button does nothing after unlink

If clicking Sync produces no response, the browser may be caching old URL handlers. Clear your browser cache and sign out of all accounts in the browser. Sign back in with only the work account. Then try the Sync button again.

OneDrive opens the correct account but shows the wrong library

This happens when a SharePoint document library URL is malformed or when the library has been renamed. In the browser, navigate to the correct library, copy the URL from the address bar, and manually paste it into the OneDrive sync client. To do this, click the OneDrive cloud icon, select Settings, go to Account, and click Choose folders. Then click Sync a new library and paste the URL.

Sync Button Behavior: Browser vs OneDrive Client

Item Browser (SharePoint / Microsoft 365) OneDrive Sync Client
Account selection Uses the account currently signed into the browser Uses the account currently authenticated in the sync client
Credential storage Session cookies and browser cache Windows Credential Manager and local token cache
Sync trigger Generates a URL with the library ID and passes it to the sync client Receives the URL and opens the folder for the signed-in account
Multiple accounts Browser can switch accounts via profile switcher OneDrive client supports only one work or school account at a time
Fix for wrong account Sign out and sign in with the correct account Unlink, clear credentials, or reset the client

You can now resolve the Sync button account mismatch by unlinking the wrong account, clearing stale credentials, or resetting the OneDrive client. Test the Sync button after each method to confirm the correct account opens. For persistent issues, remove all OneDrive credentials from Windows Credential Manager and sign in with only the work or school account. As an advanced tip, use the OneDrive.exe /reset command followed by a fresh sign-in to guarantee no cached account data remains.

ADVERTISEMENT