Skip to content

Instantly share code, notes, and snippets.

@intolerance
Created July 6, 2021 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save intolerance/0587b8744e9c6aa9e96e6823f5a81855 to your computer and use it in GitHub Desktop.
Save intolerance/0587b8744e9c6aa9e96e6823f5a81855 to your computer and use it in GitHub Desktop.

Moving to a new MS Org? (macOS specific)

I recently switched to a new MS Org and was having issues with the Microsoft Login going to my old tenant instead of the new one.

Outlined below are the steps I used to eliminate the old MS Org and allow you to move forward with the new one.

The Purge

  1. Uninstall all Office applications
  2. Uninsall Company Portal application
  3. Open KeyChain
  4. Remove anything from "login" that relates to Microsoft or the old login (search for email address)
  5. In KeyChain, while still in "login" Click the Certificate tab
  6. Remove any certificate issued by "MS-Organization-Access"
  7. Open Terminal
  8. cd ~/Library/Application\ Support
  9. Remove all "com.microsoft" folders. (rm -rf)
  10. cd Microsoft
  11. cd Teams
  12. rm desktop-config.json
  13. rm storage.json
  14. Open "Profiles" from "System Preferences"
  15. Remove any remnant Profiles by selected and clicking "-" at the bottom left.

Next steps, contact your IT deptartment for registration/insallation details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment