Written by Thomas Speekenbrink
When connecting to EWS (Exchange Web Service) you could receive a 401 error, saying you are not authorized.
Verify if you indeed are not authorized to connect to EWS.
Something you can also check is the password of the SyncUser with which you are trying to connect to EWS. Office 365 doesn’t like passwords with special characters:
This password for instance didn’t work anymore: d2h*praWrAW6
When changed to this the connection to EWS worked: 11vac1lex222SO!!1234