Hi @Anonymous ,
You can check using M365 admin portal or powershell to check if the user has teams license assigned or not.
https://admin.microsoft.com
https://learn.microsoft.com/en-us/microsoftteams/user-access#using-powershell
If the above suggestion helps, please click on "Accept Answer" and upvote it.