AADSTS50020 error cannot use Teams.
As you said, AADSTS50020 error cannot use Teams that used the wrong endpoint (personal and organization accounts). There are several reasons why this issue happened, you could refer it:
Cause 1: Used unsupported account type (multitenant and personal accounts)
Cause 2: Used the wrong endpoint (personal and organization accounts)
Cause 3: Signed in to the wrong tenant
I want to erase what is being used for this education/corporate teams stuff completely.
First, we can try to double check your steps just to be sure:
- Quit the Microsoft Team.
- In finder, select Go> Go to folder.
- Copy and past ~/Library/Application Support/Microsoft > Go.
- Move Teams to trash.
- Open spotlight search> Keychain access.
- In keychain access, search for Teams> teams identities cache.
- Delete.
- Relaunch.
After verifying these steps we can try another method:
- Quit the Microsoft Team.
- In finder, select Go> Go to folder.
- Enter ~/Library/caches.
- Delete the com.microsoft.teams folder.
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.