question

hauld-5026 avatar image
0 Votes"
hauld-5026 asked hauld-5026 answered

Enabling EWS on my new "onmicrosoft.com" domain

I have a server with a EWS application.
It is not clear what I should use for the service URL of the On-Line Exchange were. Nor can I find under my administration where I can check that the EWS service is enable/active on Microsoft Exchange Admin center.

Every combination of URL fail.

office-exchange-server-administrationoffice-exchange-server-connectivity
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

hauld-5026 avatar image
0 Votes"
hauld-5026 answered

That worked. However I'm getting a "The request failed. The remote server return an errors: (401) Unauthorized." I'm using the Office365 administrator account. But it did connect to the cloud, that's a step forward.

I know I had to use Microsoft app to authenticate when I use the OWA. Does this have any barring on my new issue?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

michev avatar image
0 Votes"
michev answered

It's enabled by default, and all O365 tenants use the same URL: "https://outlook.office365.com/EWS/Exchange.asmx"

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GlenScales-6756 avatar image
0 Votes"
GlenScales-6756 answered

Basic Authentication is disabled by default now (and if you not using it) https://techcommunity.microsoft.com/t5/exchange-team-blog/basic-authentication-and-exchange-online-february-2021-update/ba-p/2111904 . You should be using OAuth eg https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-authenticate-an-ews-application-by-using-oauth in your application.

If you just want to test EWS and oAuth try the EWSEditor https://github.com/dseph/EwsEditor/releases the new version has really good support for testing both Delegate and Application permissions

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

hauld-5026 avatar image
0 Votes"
hauld-5026 answered

GlenScales-6756, thank you. I need to try this out. I will update later.
Thanks

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.