Microsoft 365: HTTP 500 - An error has occurred - Login not possible

During a migration from Exchange onPrem to Microsoft 365, the error occurred that users synchronized via AADConnect could not log in to some services (such as Exchange Online and Office Portal) (HTTP 500 error). However, it was possible to log in to Teams and OneDrive without any problems. It was also possible to log in to all services via Edge and Internet Explorer, but not from smartphones and other browsers such as Chrome, Firefox or Safari. Signing in with Outlook was also possible without any problems.

When I tried to log on to the Office Portal (https://portal.office.com), only the following error message was displayed (unfortunately not very helpful):

Sorry, that didn't work error message
Sorry, that didn't work.

The HTTP 500 error message when trying to log in to Outlook Web (https://outlook.office.com) was a little more helpful here:

M365: HTTP 500 - An error has occurred

The following section from the details of the error message is of interest here:

X-Auth-Error OpenIdConnect Microsoft.Exchange.Security.OpenIdConnect.OpenIdConnecIdpException

The text "OpenIdConnectIdpException" indicates that there are problems with AADConnect and the type of user login. In this specific case, AADConnect was configured to the "Passthrough authentication" login method (default). However, pass-through authentication was deactivated in the Azure Active Directory and no agent was installed in the onPrem environment:

Azure Active Directory

Since in this case the hybrid configuration only existed until the migration was completed, the "Password hash synchronization" login method was activated in AADConnect:

Azure Active Directory Connect

After synchronization, it was possible to log in with all devices and browsers without any problems. Alternatively, the corresponding agent can also be installed so that pass-through authentication can be used accordingly. Further information on pass-through authentication and password hash synchronization can be found here:

1 thought on “Microsoft 365: HTTP 500 – Es ist ein Fehler aufgetreten – Anmeldung nicht möglich”

Leave a Comment