Fixing the OneDrive App Log in Error on a Mac

Audience: Faculty, Staff and Students

This KB Article References: OneDrive
This Information is Intended for: Faculty, Staff, Students
Last Updated: September 27, 2016

Certain Mac users might have difficultly logging into the OneDrive app. Even when the user enters a valid SBU email/NetID password, he/she will receivean "invalid username or password" error. If you are using a Mac, and you have experienced this problem, then you will need to apply this fix. Note: not all Mac users will have this problem, attempt to log in to the OneDrive app before doing this. Also check that you are using a valid SBU email address and  NetID password by logging into the OneDrive website here.

  1. Open Finder > Applications > search "Terminal". Run.
  2. Type "defaults write com.microsoft.OneDrive-mac DefaultToBusinessFRE -bool True", press Return.
  3. Type "defaults write com.microsoft.OneDrive-mac EnableAddAccounts -bool True", press Return.
  4. Open the OneDrive app on your computer; you should now be able to sign in.
  5. Relaunch the OneDrive app.

On typing in your SBU email address, you will be redirected to the SBU log in screen, where you can now sign in to the OneDrive app using your Stony Brook credentials: first.last@stonybrook.edu and NetID password 

Additional Information


Files & Links

Getting Help


The Division of Information Technology provides support on all of our services. If you require assistance please submit a support ticket through the IT Service Management system.

Submit A Ticket

Supported By


DoIT Training and Development