Hi @Lukas
Thank you for posting on Microsoft Q&A forum.
It appears you’re seeing duplicate accounts in Microsoft Teams and encountering an error when switching to one of them.
After reviewing your description, here is an explanation of the situation:
This issue occurs because Teams often stores both the primary organization account and a guest account or cached credentials for the same tenant, leading to duplicates. The exclamation mark signals a sign-in problem, which can happen if the account was removed from the organization, credentials expired, or cached data caused conflicts. When login fails, it’s usually because the account was deleted or guest access revoked, making authentication impossible, and cached credentials can further contribute to these errors.
There are a few steps you can try to remove account number 3 from the list:
Option 1: Clear Teams cache
Clear the cache in Teams for Windows
Method 1: Reset the app
- Type settings in the search box, and then select the Settings app from the results.
- Select Apps > Installed apps, and then type Microsoft Teams in the search box.
- Locate the New Microsoft Teams app from the results, select the More options button on the right, and then select Advanced options.
-
- In the Reset section, select Reset.
- Restart Teams.
Method 2: Delete the files
- If Teams is still running, right-click the Teams icon on the taskbar, and then select Quit.
- Pressing Windows+R to open the Run dialog box.
- In the Run dialog box, enter the following path, and then select OK. %userprofile%\appdata\local\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams
-
- Delete all files and folders in the directory.
- Restart Teams.
Clear the cache in Teams for macOS
- If Teams is still running, right-click the Teams icon in the dock, and then select Quit or press Command+Q.
- In the Finder, open the /Applications/Utilities folder, and then double-click Terminal.
- Enter the following commands, and press Return after each command:
- rm -rf ~/Library/Group Containers/UBF8T346G9.com.microsoft.teams rm -rf ~/Library/Containers/com.microsoft.teams2
- Restart Teams.
Option 2: Leave the organization
- Go to https://myaccount.microsoft.com/organizations.
- Locate the duplicate organization and click Leave organization.
- You may find further guidance here:
- Manage organizations for a work or school account in the My Account portal
- Leave an Organization - Microsoft Entra External ID | Microsoft Learn
Option 3: Remove the unwanted account from Windows settings:
- Go to Settings → Accounts → Access work or school and disconnect the account.
- Or you can type on the search bar "Access work or school"
- Restart Teams and sign in only with the accounts you need.
I hope this information is helpful. Please follow these steps and let me know if it works for you. If not, we can work together to resolve this.
Thank you for your patience and your understanding. If you have any questions or need further assistance, please feel free to share them in the comments on this post so I can continue to support you.
I look forward to your thoughts on this.
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.