Can affected users login Teams on the web?
Is this issue happening to all users in your organization?
If yes, please make sure you have Teams enabled in Azure AD.
If this issue is only happening to specific users, please run sign-in self-help diagnostic tool in Microsoft 365 admin center and see if it returns cause of this issue.
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.