AADSTS50020 can't login to teams account

piotr cierkosz 41 Reputation points
2020-03-25T13:01:09.643+00:00

Got invited by friend, then decided to setup my own teams. SO after being removed from his organization my teams stopped working.
MY office365 still working correctly

Error:
Sorry, but we’re having trouble signing you in.

AADSTS50020: User account 'piotr.w.cierkosz@Stuff .com' from identity provider 'live.com' does not exist in tenant 'PrismCode' and cannot access the application '5e3ce6c0-2b1f-4285-8d4b-75ee78787346'(Microsoft Teams Web Client) in that tenant. The account needs to be added as an external user in the tenant first. Sign out and sign in again with a different Azure Active Directory user account.

Request Id: 2ba3ba9c-097e-42fc-bcc2-dab9a7d24900
Correlation Id: 03a3a753-a1fd-464f-9c19-0a971db99815
Timestamp: 2020-03-25T12:54:58Z

Message: AADSTS50020: User account '@Stuff .com' from identity provider 'live.com' does not exist in tenant '' and cannot access the application '5e3ce6c0-2b1f-4285-8d4b-75ee78787346'(Microsoft Teams Web Client) in that tenant. The account needs to be added as an external user in the tenant first. Sign out and sign in again with a different Azure Active Directory user account.
Advanced diagnostics: Disable
If you plan on getting support for an issue, turn this on and try to reproduce the error. This will collect additional information that will help troubleshoot the issue.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,059 questions
{count} votes

16 answers

Sort by: Most helpful
  1. Sharon Zhao-MSFT 25,051 Reputation points Microsoft Vendor
    2020-03-26T04:43:35.15+00:00

    Hi piotrcierkosz,
    It seems that the error message is a Azure AD login error. This article give a explanation of the issue: http://www.agilepointnxblog.com/windows-azure-active-directory-login-error-aadsts50020/.
    It recommends you delete your Teams client cache as the following steps:

    1. Fully exit the Microsoft Teams desktop client. To do this, either right click Teams from the Icon Tray and select ‘Quit’. Or run Task Manager and fully kill the process.
    2. Go to File Explorer, and type in %appdata%\Microsoft\teams.
    3. Once in the directory, delete any file in the following folders:
      %appdata%\Microsoft\teams\application cache\cache
      %appdata%\Microsoft\teams\blob_storage
      %appdata%\Microsoft\teams\Cache
      %appdata%\Microsoft\teams\databases
      %appdata%\Microsoft\teams\GPUcache
      %appdata%\Microsoft\teams\IndexedDB
      %appdata%\Microsoft\teams\Local Storage
      %appdata%\Microsoft\teams\tmp
      If it is no luck after that, you could uninstall and reinstall the Microsoft Teams client and have a try.
    5 people found this answer helpful.

  2. harshit srivastava 16 Reputation points
    2020-07-09T06:44:28.91+00:00

    I am having really bad experience with microsoft teams. Every time I login I get this message. I want to know why this message is popping at my screen. Is my microsoft account working properly. Is everything going fine. Is there some issue in my microsoft login account. This issue is not faced by many people. What is Azure AD directory user account?

    Message: AADSTS50020: User account '@Stuff .com' from identity provider 'live.com' does not exist in tenant '' and cannot access the application '5e3ce6c0-2b1f-4285-8d4b-75ee78787346'(Microsoft Teams Web Client) in that tenant. The account needs to be added as an external user in the tenant first. Sign out and sign in again with a different Azure Active Directory user account.
    Advanced diagnostics: Disable
    If you plan on getting support for an issue, turn this on and try to reproduce the error. This will collect additional information that will help troubleshoot the issue.

    3 people found this answer helpful.
    0 comments No comments

  3. Fedor Kurilo 46 Reputation points
    2020-10-21T14:00:47.397+00:00

    I contacted to support, and they found the solution! The problem is, you have registered your account as personal from your mobile device, which means, you can not use desktop app.

    To fix this, create/use existing (but different from your current Teams account) email. It should not be private(@mydomain.example), it should be public(@Stuff .com, @harsh.com .com, @icloud.com). It can be the same as your Microsoft Account, if you didn’t use that email to create your current Teams account you are experiencing issues with.

    After that, you need to go by this link: https://www.microsoft.com/en-us/microsoft-365/microsoft-teams/group-chat-software

    Select English language and go: “Sign up for free” -> Enter your new/existing email -> choose “for work and organizations” -> fill your Name, any organization name, select your Region(! In some countries WEB version of Teams is not available yet), I recommend to choose US, as I know, there should not be any limitations. -> DONE!

    You have successfully created a free work account, that you can use on any device!

    3 people found this answer helpful.

  4. Francesco Mariani 21 Reputation points
    2020-10-29T16:02:34.527+00:00

    Nothing worked for me. I'm still getting the same issue.
    Logged out from my company account and trying to reconnect with my private one.
    No way.

    Error still

    aadsts50020: user account 'xxx@xxxit' from identity provider 'live.com' does not exist in tenant "xxx@X .onlinemicrosoft.com"...

    Is a nightmare!!! Teams is really impossible to use. We were plannin to implement teams as our streaming default platform, but with these issues is impossible! We will keep the older one...

    I think that if I logout from teams it shouldn't keep info of the older account, and should let me in with any other valid account.... it is like my company account locked teams forever in my pc and in my mobile phone...
    UNBELIEVABLE!!!

    3 people found this answer helpful.

  5. Oliver O 11 Reputation points
    2020-07-13T21:05:04.437+00:00

    a client is having the exact same issue as well - need an easy fix otherwise Teams isn't going to be all it is cracked up to be.

    2 people found this answer helpful.
    0 comments No comments