Changing between multiple Microsoft Teams accounts within the app or browser
Hello @Michal Z Thank you for reaching out and providing details about the issue you're experiencing with Microsoft Teams on macOS.
This behavior is often caused by Teams caching identity and configuration data in multiple locations across macOS. To fully reset Teams and remove all traces of old accounts, I recommend following the steps below:
Step 1: Sign Out of All Microsoft Applications
Before proceeding, please sign out of all Microsoft apps on your Mac, including Outlook, OneDrive, Word, Excel, and PowerPoint. These apps may sync identity data across services and reintroduce cached credentials.
Step 2: Fully Quit Microsoft Teams
Ensure Teams is not running in the background. Right-click the Teams icon in your Dock and select Quit.
Step 3: Clear Keychain Entries
- Open Keychain Access (found in /Applications/Utilities or via Spotlight).
- In the search bar in the top-right corner of the Keychain Access window, search for and delete all entries that contain the following keywords. Search for them one by one:
- Microsoft Teams
- ADAL (Microsoft Authentication Library)
- Office
- Right-click each entry and choose Delete "[entry name]".
Step 4: Delete Teams Cache and Configuration Files
- Open Finder.
- Click Go in the menu bar and select Go to Folder….
- You will need to delete the contents of a few specific locations. Copy and paste the following paths into the "Go to Folder" box one at a time and press Go:
- ~/Library/Application Support/Microsoft/Teams
- ~/Library/Caches/com.microsoft.teams
- ~/Library/Preferences/com.microsoft.teams.plist
- ~/Library/Group Containers/UBF8T346G9.com.microsoft.teams (this folder often contains persistent identity data)
Step 5: Restart Your Mac (Optional but Recommended)
Restarting ensures all background processes related to Teams and Microsoft identity services are terminated.
Step 6: Relaunch Teams
Open Microsoft Teams. It should now behave like a fresh installation, prompting you to sign in without showing any previously used accounts.
Optional: Script to Automate Folder Deletion
If you're comfortable using Terminal, you can run the following commands to automate Step 4. Please be cautious, these commands permanently delete files without moving them to Trash.
rm -rf "~/Library/Application Support/Microsoft/Teams"
rm -rf "~/Library/Caches/com.microsoft.teams"
rm -rf "~/Library/Group Containers/UBF8T346G9.com.microsoft.teams"
rm -f "~/Library/Preferences/com.microsoft.teams.plist"
After running these commands and clearing the Keychain, the issue should be resolved.
Please let me know if this solves the problem or if you have any further questions.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment”.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread