How to Fix OneDrive for Mac Sign-In Using an Old Microsoft Account Alias
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.

- 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.
Verify that your new alias is active and working by attempting to log into OneDrive.com using a private or incognito Safari window.
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.
Ensure OneDrive is completely closed. Click the OneDrive cloud icon in your Mac menu bar, click the gear icon, and select 'Quit OneDrive'.
Open Finder and navigate to your 'Applications' folder. Right-click on the OneDrive app icon and select 'Show Package Contents' from the context menu.
Navigate through the folders by opening 'Contents' and then 'Resources'.
Double-click the file named 'ResetOneDriveApp.command' (or 'ResetOneDriveAppStandalone.command' if using the standalone version). This will open Terminal and execute the cleanup script.
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.

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. Download the App: Visit the official WPS Office website to download the free installation package for Mac.
- 2. Install and Launch: Follow the installation prompts and open WPS Office from your Applications folder.
- 3. Sign In and Sync: Create a free WPS account to instantly enable cloud backup and start editing your documents across all your devices.

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.




