Additional features, settings, or issues not covered by specific Microsoft Teams categories
Dear SDS Admin,
Thanks for choosing Microsoft Community.
Based on your description, I know your requirement. The user account doesn’t exist in the directory. An application likely chose the wrong tenant to sign into, and the currently logged in user was prevented from doing so since they did not exist in your tenant. If this user should be able to log in, add them as a guest. For further information, please visit add B2B users.
Please check if this can help you, please be kindly to check whether you only get this error code when you log in Teams or also get this when you log in other Microsoft products like Outlook, One Drive and so on? Meanwhile, also check whether other users in your organization meet this error code or just one people meet this. Meanwhile, please be kindly to provide me the detailed screenshot about the error page. I will continue to help you based on the information you provide. Your understanding and co-operation are highly appreciated.
Thanks for your precious time. Have a nice day.
Sincerely,
Katherine