ews-managed-api icon indicating copy to clipboard operation
ews-managed-api copied to clipboard

ExchangeService.GetRoomLists(): "Mailbox '<guid>' doesn't have a valid license."

Open Vineet-Yadav opened this issue 3 years ago • 0 comments

We validate the user on Azure AD and found this have valid license (Office 365 E5 Developer). We are using OAuth grant flow. While fetching data from Exchange using Exchange service, ExchangeService.GetRoomLists() is returning error as "Mailbox '' doesn't have a valid license."

Detail message: Error Message:An internal server error occurred. The operation failed., Mailbox '' doesn't have a valid license. Stack Trace: at Microsoft.Exchange.WebServices.Data.ServiceResponse.InternalThrowIfNecessary() at Microsoft.Exchange.WebServices.Data.GetRoomListsRequest.Execute() at Microsoft.Exchange.WebServices.Data.ExchangeService.GetRoomLists()

Here ExchangeService is Microsoft.Exchange.WebServices.Data.ExchangeService.

Please suggest the missing part?

Vineet-Yadav avatar Feb 04 '22 12:02 Vineet-Yadav