question

Heather-0373 avatar image
0 Votes"
Heather-0373 asked JimmyYang-MSFT commented

AADSTS50020 Cannot connect to teams

When I try to log in to teams it takes me to an old linked work account and I cannot access the account or stop teams linking it through. Anybody know how to solve the problem.

AADSTS50020: User account 'h--------@gmail.com' from identity provider 'live.com' does not exist in tenant 'Whitecotes Primary School' 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.

office-teams-windows-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JimmyYang-MSFT avatar image
0 Votes"
JimmyYang-MSFT answered JimmyYang-MSFT commented

Hi @Heather-0373

According to your error message, this issue seems related to Azure AD login error. When user is trying to sign up with a live.com ID which is not a Windows Azure native org account, it will cause this issue. For more details about this error, you can refer to:

http://www.agilepointnxblog.com/windows-azure-active-directory-login-error-aadsts50020/

In this case, we firstly recommend you clear your client cache by following these 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

Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Heather-0373

It has been a while, how is everything going?
If you have any update about this issue, please feel free to post back.

0 Votes 0 ·