Type: Configuration error (You are often able to resolve this type of error.)
The error can happen in multiple scenarios, please see below
ErrorUnauthorized when connecting the service account:
The error can happen when connecting the service account (Basic authentication)
Please enter a valid set of credentials. Check that the specified username and password can be used to log in to Exchange. If the error persists, try typing the username without the "@domain.com" in the e-mail field.
You can also check that username and password can be used to log in to your EWS URL (If you are using O365 the EWS URL will always be: https://outlook.office365.com/EWS/Exchange.asmx)
Furthermore, you can check if the service account can access EWS externally using the following Microsoft Connectivity Tool website: https://testconnectivity.microsoft.com/#&&Jtn0NnPPEC4GA7XXbfXtBsFMMpLP/1L9WRZephR4rWelHOpg2VRYAX7jbAcDJs4ZkdyCar8vg26eu7AkKZoYKtOM31mA5mwffO0Ze13OWZIryQ46PWeIbQB3OqBpKnvJl++a3peWGzuLYsJsGT+II2Uze06Yh2pDRKO3CtarEfKtDVl0HmxLhPN9JKIZe9pwmeaScw==
ErrorUnauthorized in Add-ins/Displays:
The connection does not have access to the mailbox/mailboxes added to the meeting. The connection to Exchange is set-up with basic authentication (username/password). If the connection does not have the correct credentials the add-ins will fail load with the error message ErrorUnauthorized. Please make sure that the service account credentials is correct by going to Connect in Admin Center, press edit and then update the account without doing any changes to test if the credentials are valid. If the update fails with ErrorUnauthorized Please check the solution presented above. If the update is successful see below.
The service account will try to look-up the meeting room added to the meeting when opening the Add-in. In the case where the service account does not have access to the meeting room mailbox ErrorUnauthorized will also be shown. Please ensure that the mailbox is within the scope of the service account access.