After assigning the Office 365 role successfully, when trying to log in to it from the Internet, we get the below message. The mailbox is not getting created, even though the IDM connector is not throwing an error.
UTC Date: 2022-05-11T15:14:10.496Z
Client Id: 602100A19C024CF4AA33B6F88364B4A3
Session Id: 13670db0-fc1d-4765-8734-1aa70962e7e1
Client Version: 20220408004.16
BootResult: configuration
err: Microsoft.Exchange.Clients.Owa2.Server.Core.OwaUserHasNoMailboxAndNoLicenseAssignedException
esrc: StartupData
et: ServerError
estack: Error: 500
at f (https://outlook.office365.com/mail/:297:223914)
at https://outlook.office365.com/mail/:297:233066
st: 500
ehk: X-OWA-Error
efe: BN9PR03CA0281, MN2PR20CA0036
ebe: BN8PR10MB3153
emsg: UserHasNoMailboxAndNoLicenseAssignedError
The accounts were missing the mailbox only because they had not been licensed.
Apply Microsoft license. Check the Additional info section for the detail
https://docs.microsoft.com/en-us/exchange/recipients-in-exchange-online/create-user-mailboxes