Sign-in & Login Problems

How to Fix OneDrive for Mac Sign-In Using an Old Microsoft Account Alias

Nimra MalikNimra Malik Nov 2, 2026 869 views

Question details

OneDrive for Mac fails to recognize a newly updated primary Microsoft account alias, repeatedly attempting to sign in with an outdated alias even after reinstalling the app.

How to Fix OneDrive for Mac Sign-In Using an Old Microsoft Account Alias
Product
OneDrive for Mac
Device & OS
Mac
Scenario
Changing a primary Microsoft account alias and attempting to sign into the OneDrive desktop app on macOS.
Observed behavior
The OneDrive application retains the old account configuration locally, blocking sign-in attempts with the new primary alias.
Before you start

Verify that your new alias is active and working by attempting to log into OneDrive.com using a private or incognito Safari window.

Solution 1Recommended

Reset the OneDrive for Mac Application

Use the built-in reset command script hidden inside the OneDrive application package to completely clear cached account configurations.

A standard reinstallation of OneDrive on macOS often leaves cached configuration files intact. Executing the internal reset command forces the app to wipe these local settings so you can enter your updated credentials.

1
Quit the OneDrive application

Ensure OneDrive is completely closed. Click the OneDrive cloud icon in your Mac menu bar, click the gear icon, and select 'Quit OneDrive'.

2
Locate the app package contents

Open Finder and navigate to your 'Applications' folder. Right-click on the OneDrive app icon and select 'Show Package Contents' from the context menu.

3
Find the reset command script

Navigate through the folders by opening 'Contents' and then 'Resources'.

4
Execute the reset script

Double-click the file named 'ResetOneDriveApp.command' (or 'ResetOneDriveAppStandalone.command' if using the standalone version). This will open Terminal and execute the cleanup script.

5
Restart and sign in

Once the script finishes running in Terminal, relaunch OneDrive from your Applications folder and proceed through the initial setup using your new primary Microsoft alias.

Reset the OneDrive for Mac Application
No Data Loss: Resetting the OneDrive app configuration clears your sign-in preferences but does not delete any of your locally synced files or cloud data.
Free Microsoft Office alternative

Try WPS Office for Seamless Cloud Integration on Mac

If OneDrive or Microsoft Office account syncing issues are slowing you down, try WPS Office. It's a lightweight, reliable alternative that offers full compatibility with your existing Office files and features its own dependable cloud storage system built right in.

  1. 1. Download the App: Visit the official WPS Office website to download the free installation package for Mac.
  2. 2. Install and Launch: Follow the installation prompts and open WPS Office from your Applications folder.
  3. 3. Sign In and Sync: Create a free WPS account to instantly enable cloud backup and start editing your documents across all your devices.
Fully compatible with Microsoft Office formats (Word, Excel, PowerPoint)Built-in WPS Cloud storage for easy and reliable document syncingLightweight application optimized for macOS performanceFamiliar, tabbed interface that makes switching effortless
microsoft office alternative - wps office

Frequently Asked Questions

Why didn't reinstalling OneDrive clear my old alias?

When you drag an application like OneDrive to the Mac Trash, it often leaves behind hidden configuration, preference, and cache files in your user Library folder. These files store your old sign-in data, causing the reinstalled app to remember your previous alias.

Will running the ResetOneDriveApp command delete my synced folders?

No. The reset command only clears the application's internal connection settings and cache. Your locally synced files will remain intact on your hard drive, though you will need to re-select your sync folder location during the new setup.

How do I change my primary Microsoft account alias on the web?

To change your primary alias, sign in to your Microsoft account online, navigate to the 'Your info' tab, click on 'Edit account info', and select 'Make primary' next to the email address or phone number you wish to use as your main login credential.