Teams Linux - Cannot login even though authorisation seems to be succesful

Bart van Oort 26 Reputation points

Hi everyone!

I'm having a problem logging in with the desktop client of MS Teams on Linux. Whenever I try to login to the app, my username (/email) and password are accepted and it shows me the 2FA page with my organisation's background. I then receive a text message with my 2FA code in it, which I then enter and seemingly gets accepted. I then get the 'Stay signed in?' question, which I answer with 'Yes'. So far so good, I expect the actual MS Teams UI to be launched next. But instead, it closes and relaunches to open the 2FA page again. I don't need to enter my username and password again (unless I manually close and reopen MS Teams), but it does send another text message to my phone with a 2FA code. I can keep entering the 2FA code and then getting the same 'Stay signed in' page and the Teams restart that happens after that, until Teams reaches the limit for maximum amounts of 2FA attempts.

Essentially then, I'm stuck in a 2FA loop, where all of my entered credentials are correct, but somehow it never really logs me in to show the actual app... At least I can still use the in-browser client, but that has its own shortcomings for which I'd like to use the desktop app.

As for some details of my system, I'm running Manjaro KDE (fully up-to-date as of today) with the Teams app installed from the AUR, version (though this problem has been with me for +- a month now). Interestingly, I was able to use the Teams desktop app from September to October "just fine" (had some problems back then as well, including with login, but that then suddenly 'just worked' iirc)

If there's any other info you need to debug this issue, let me know! What can we do to get MS Teams on Linux working for me? Or is it just a lost cause?

Skype for Business Linux
Skype for Business Linux
Skype for Business: A Microsoft communications service that provides communications capabilities across presence, instant messaging, audio/video calling, and an online meeting experience that includes audio, video, and web conferencing.Linux: A family of open-source Unix-like operating systems.
456 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sharon Zhao-MSFT 25,051 Reputation points Microsoft Vendor

    @Bart van Oort ,

    Does anyone else have the same issue?

    Make sure that you have set the correct time zone on your machine.

    Then, clear the config folder. The following is a list of locations depending on your type installation:

    If the response is helpful, please click "Accept Answer" and upvote it.

    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.

1 additional answer

Sort by: Most helpful
  1. Jeff Sereno 6 Reputation points

    Had a similar issue in April 2021 with Ubuntu 20.04 LTS. My clock had drifted badly after being switched off for a period of time (possibly a bad RTC battery) and I got the boot loop as well.

    Uninstalling and reinstalling didn't fix the issue. In the end, I had to correct the clock and then delete the Microsoft and Teams folders from ~/.config before Teams would login and launch properly (the config folders get recreated automagically).

    I have since added a cron job to keep my clock updated properly, ie: "@hourly /usr/sbin/ntpdate"

    1 person found this answer helpful.
    0 comments No comments