Forum Discussion
Microsoft Teams Desktop on Mac Stuck in Login Loop
I recently changed from one MS Office 365 email/organization to another. I've removed the "old" Office 365 account from everywhere I can find on my Mac, but when I launch Microsoft Teams - every time - it asks me to login with my "old" email address. When I click sign in under a different account, it goes through - but Microsoft Teams just gets stuck in the same loop. How can I fix this so I can use the desktop app with my new email/organization?
I’ve got this login loop after I logged in with me private MS account in Teams. I stucken in a login loop when I tried to log with my company account in Teams. Close your Teams application and go to $HOME//Library/Application Support/Microsoft/Teams in files browser and delete/move the Teams folder to Teams_old for example.
Start your Teams application, the Teams folder will created and the Login window appears.
For me it works, when I delete the $HOME//Library/Application Support/Microsoft/Teams folder after I was logged in with me private MS account.
Heiko
66 Replies
- JGroobCopper ContributorI FIXED IT!
I use outlook for my new organization. I created a teams meeting in my outlook calendar. I made sure Teams was closed on my mac. I think clicked to "join the teams meeting" from outlook and it prompted Teams to open. It had a mild window flicker freak out but it then prompted me to "join the meeting" and before clicking "join" in the pop up box I saw it had an option to "sign in," I clicked that and it then brought me back to the full organizational sign in and I was able to sign in with my new org. I tried so many things to try but this was the only think that kicked it out of the old org sign in window. - jcquokka88Copper ContributorI got stuck in this situation and, to fix, I removed the Teams folder from Application Support. This worked but after some days, the same thing happens - I've probably deleted my Teams folder a dozen times now over the last few months. What I can't fathom is where Teams is getting my old account name from (on first launch after deleting the Teams folder from Application Support, the bad old account is always shown at the top of the list under "Pick an account to continue"). After reading these posts I attempted removing the Identities Cache from Keychain Access but it won't delete. I'm on MacOS Sonoma 14.1 (though the problem started when I was on Ventura - OS upgrade clearly hasn't helped either).
- claraerhemzCopper ContributorSpoilerGO CHECK THIS VIDEO. I SPENT 2HRS SOLVING THIS STUPID ISSUE
https://www.youtube.com/watch?v=iMZBpEgfEY4
- Andycardenas99Copper Contributor
- paulgrantCopper Contributor
I managed to fix this finally on OSX!
Following all the steps above didn't solve this.
What did solve it was to complete the steps to uninstall completely and remove everything from keychain and Application Support folder.
Finally - download an older version of Teams- 1.4.00.4971 worked for me.
I am now able to login with a new account.
https://docs.microsoft.com/en-us/answers/questions/250459/ms-teams-login-infinite-loop.html?childToView=854663#answer-854663
- Peter WakeCopper Contributor
For anyone else with this issue, this worked for me and was super quick:
- Stop Teams (even better, reboot your Mac!)
- Open the `terminal` application on your Mac (click Launchpad then type term, hit Enter)
- Change to the Teams directory - e.g. cd ~/Library/Application\ Support/Microsoft/Teams
- To find files that mention your 'bad' email address (note there is a dot at the end of this command!): grep -r 'mypersonalemail@eghotmail.com' .
- For me, this gave desktop-config.json and storage.json
- Run rm desktop-config.json and then rm storage.json
Now when I restarted Teams, it asked me which of the two accounts on my Mac I wanted to use - my personal one or my business one.
- seanwangCopper ContributorThank you so much. I have been bugged by this for a year. Finally solved!
- acbcAdminCopper ContributorHi Peter,
I wonder if you could help me please. When I tried your steps, there was no Teams folder. There was another folder, which included the Teams keyword, which I deleted (not sure if this was wise or not).
Secondly, ran the commands that you prescribe. I got desktop-config.json and storage.json in the results. I then ran rm desktop-config.json and then rm storage.json commands. After this ran many lines of code in the Terminal console and came to an end, I still had the login loop issue (a pop login pop up to my legacy account). I also tried rebooting my Mac, but it still didn't resolve the issue.
Is there something I'm missing or is there something else you could recommend?
Thanks in advance
acbcAdmin - HieuTr0508Copper ContributorIt's very helpful
It's work for me
Thank you so muchhhhhh
- ARBattaseCopper ContributorReferred following link and the issue seems to resolved for good for me.
https://www.uvm.edu/it/kb/article/clearing-teams-cache/
Its a 5 step process:
1. Fully close Microsoft Teams.
2. Copy and paste the following into the Go to Folder box, then click Go:
~/Library/Application Support/Microsoft
3. Right click the Teams folder, then click Move to Trash.
4. Using Spotlight Search (accessed by clicking the magnifying glass on the macOS menu bar), enter “Keychain” and select Keychain Access. Search for Microsoft Teams keys in keychain. Within Keychain, search for “Microsoft Teams” to find the Microsoft Teams Identities Cache entry. Right (two finger) click this item and select the delete option, then close the Keychain Access app.
5. Relaunch Microsoft Teams. You should now be prompted to sign back into Teams.- wendimalleyCopper ContributorJust encountered this same loop of never ending login prompts. I followed the steps above and the issue has resolved itself. Thank ARBattase, thank you for sharing.
- joeackerCopper ContributorThis worked for me - thanks! I was getting very frustrated and removed as many cache files and keychain entries as I could find - but it wasn't until I deleted that Microsoft Application Support file that I could finally close TEAMS and login with a new username. Thanks!
- Jonathan_StarrCopper Contributor
Thanks very much! The tip about deleting the folder ~/..../Teams solved the problem for me! Of course, the infinite loop where you cannot enter a different account is a Teams bug, which Microsoft should have fixed already.
- HeretohelpCopper Contributor
For all those who weren't able to login using the above recommendations, I followed the below steps and worked for me:
1 - I signed in to my personal Microsoft account using teams for iOS
2 - I restarted teams from my Mac desktop app
3 - Then it auto logged in without getting stuck in the login loop
Hope it works for you 🙂
- CMPx92Copper Contributor
atunellRTG Clearing all Teams items from keychain and then restarting the Mac fixed for me, after restart it prompted with the correct login box!
- m7yang
Microsoft
atunellRTG I got same issue that Teams on Mac stuck in login loop. It turns out the root cause is my certification - I reinstalled my mac without changing my computer name. After that, I use my org's MDM tool to enroll my Mac but failed but I didn't noticed that. So I keep got that login loop issue.
For my case, the solution is simple - I removed my Mac registered in MDM portal with old computer name. Rename the computer and re-enroll the Mac. Once done, I can login Teams without any issues then.
Hope it helps for your case.
- Try removing the password from the keychain on the Mac. This may solve it
https://lts.lehigh.edu/services/stepwise-instructions/remove-saved-password-mac-keychain
Let me know how it goes
Best, Chris- BrenoMedeirosCopper Contributor
404 Page Not Found
- oli-jCopper ContributorDon't delete your keychain unless you have a backup.
- atunellRTGCopper Contributor
- LtoombsCopper Contributorsame. Ive been at this for 5 hours