This happend back a couple of days ago. Do you know how this can happen suddenly?
By ”happen suddenly", do you mean the 2 accounts can access OWA successfully a few days ago? If this is the case, is there any change made to these 2 accounts right prior to the occurrance of this issue?
In terms of this error message, please first of all go to Microsoft 365 admin portal and make sure the 2 users have been assigned a valid Exchange Online license. Or you can connect to Exchange Online PowerShell and run the command below against the account in question, make sure the recipient type is UserMailbox:
Get-Recipient <UserIdentity>
With this confirmed, it's suggested to test in different browsers or switching to the InPrivate mode of the browser and see if the error persist.
Here's a thread about a similar error message which only occurs in Edge for your reference: UserHasNoMailboxAndNoLicenseAssignedError
From the discussion there, the issue was found out to be related to the AmbientAuthenticationInPrivateModesEnabled
value setting.
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.