Top answer
1 of 5
39

My Exchange Admin Center looks nothing like what you show above.

2 of 5
4

Hello Mark Topash1, Good day!Thank you for posting to Microsoft Community. We are happy to help you.

Per the description you have share with us, your issue is related to our hybrid team. You can post your issue using this link: Microsoft Exchange Hybrid Management - Microsoft Q&A

So far base on my knowledge you are trying to set up Zoom and you need the EWS URL found in EMC/ECP.

  1. In the Exchange Admin Center, click servers.
  2. Click Virtual Directories, then double-click EWS.

3-Click General, and locate the EWS URL.

Once you find the EWS virtual directory, the URL should be displayed there. It typically starts with "https://" and includes the server's name or IP address, followed by "/EWS" or a similar path.

Please note that the exact steps and terminology may differ depending on the version of Exchange you are using. If you're unsure or unable to locate the EWS URL, it may be helpful to consult your organization's IT support or Microsoft's official documentation for your specific Exchange version.

The default URL for EWS is **https:///ews/exchange.asmx(often this may be the same server that OWA is hosted on

If using the above URL with the appropriate domain is not functional, the correct URL can be retrieved in one of 2 ways:

  1. The Exchange admin can use a PowerShell command on the exchange server

a. Open PowerShell on the Exchange server

b. Type Get-WebServicesVirtualDirectory |Select name, *url* | fl

c. The URL will be provided

Please feel free to let us know if there are any questions or if we got you wrong. We will continue to assist you based on the information you provide. We sincerely appreciate your patience and cooperation. Sincerely,Eben Ezer Tres | Microsoft Community Moderator

🌐
Metaspike
docs.metaspike.com › metaspike knowledge base › forensic email collector › how to find the exchange web services (ews) url
How to Find The Exchange Web Services (EWS) URL - Metaspike Knowledge Base
Get-WebServicesVirtualDirectory | Select name, *url* | fl · If available, you can also use an account already configured in an email client to find out what the EWS URL is.
🌐
Ucworkspace
quicklaunch.ucworkspace.com › support › solutions › articles › 3000079710-determining-the-exchange-web-services-ews-url
Determining the Exchange Web Services (EWS) URL : End of Sales Since Dec 2023, End of Support End of 2024
1) Receive EWS URL for Microsoft ... EWS URL without browser · Access the mailbox account using Outlook Web Access (OWA) https://outlook.office365.com/owa or https://outlook.office365.com ·...
🌐
Oncehub
help.oncehub.com › help › how-to-determine-the-ews-url
How to Determine the EWS URL | OnceHub
Open PowerShell on the Exchange server and type this command: Get-WebServicesVirtualDirectory |Select name, *url* | fl · If none of these methods revealed the EWS URL, use our Exchange/Outlook Calendar troubleshooting guide.
🌐
Email Parser
emailparser.com › home › documentation › email sources › how to find the exchange web services url
How to find the Exchange web services URL - Email Parser software
October 29, 2021 - https://outlook.office365.com/EWS/Exchange.asmx Note that an app specific password is usually required. This is not your account password. You can also use the Office 365 email source if you do not want to create an app password.
🌐
GFI Archiver
support.archiver.gfi.com › article › 105865-how-to-obtain-the-exchange-web-services-ews-url
How to obtain the Exchange Web Services (EWS) URL - GFI Archiver
March 17, 2025 - The URL can be composed using the following syntax: https://<EXCHANGE_SERVER_HOSTNAME>/EWS/Exchange.asmx ... Open Exchange Management Shell and run the following command. Get-WebServicesVirtualDirectory |Select name, *url* | fl ... Error: 'Failed during: Testing connection' when performing ...
🌐
Microsoft Learn
learn.microsoft.com › en-us › exchange › client-developer › exchange-web-services › get-started-with-ews-client-applications
Get started with EWS client applications | Microsoft Learn
In a production application, you'd use Autodiscover to determine the EWS URL. The examples in this article use the Office 365 EWS endpoint URL, https://outlook.office365.com/EWS/Exchange.asmx.
Find elsewhere
🌐
Help Center
support.gogetcorp.com › hc › en-us › articles › 6820480306844-Determining-the-Exchange-Web-Services-EWS-URL
Determining the Exchange Web Services (EWS) URL – Help Center
Determining the Exchange Web Services (EWS) URL · Calendar sync issues for Microsoft 365 with EWS integration · February 02, 2023 21:16 Updated · Applies to: Exchange 2013/2016/2019 · How to resolve: Go to https://testconnectivity.microsoft.com.
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 5578227 › how-do-i-find-ews(exchange-web-service)-url-found
How do I find EWS(Exchange Web Service) URL found in EMC/ECP. - Microsoft Q&A
Based on my research, the Exchange ... +If you're using Exchange Online (Microsoft 365): The EWS endpoint is https://outlook.office365.com/EWS/Exchange.asmx...
🌐
Enovapoint
help-junglemail.enovapoint.com › junglemail documentation › sending to office 365 groups (ews configuration)
Sending to Office 365 groups (EWS configuration) - JungleMail documentation
To do this, access your mailbox ... name of the first server on the list. The URL of Exchange Web Services for the mailbox is the URL: https://MAIL-SERVER/EWS/Exchange.asmx....
🌐
InfoBridge
kb.infobridge.com › hc › en-us › articles › 202657612-How-to-verify-the-OAB-and-EWS-url-for-the-Exchange-Online-Synchronizer
How to verify the OAB and EWS url for the Exchange Online Synchronizer – InfoBridge
Please contact your (local) Exchange Administrator and they will supply you with the correct URL's. EWS = Exchange Web Services OAB = Offline Address Book ... https://outlook.office365.com/ews/exchange.asmx https://outlook.office365.com/OAB...
🌐
GFI Support
support.gfi.com › article › 113857-how-to-obtain-the-exchange-web-services-ews-url
How to obtain the Exchange Web Services (EWS) URL - GFI Support
March 18, 2025 - The URL can be composed using the following syntax: https://<EXCHANGE_SERVER_HOSTNAME>/EWS/Exchange.asmx ... Open Exchange Management Shell and run the following command. Get-WebServicesVirtualDirectory |Select name, *url* | fl ... Error: 'Failed during: Testing connection' when performing ...
🌐
Thelayer
app.thelayer.com › kb-public › layersystems › article › how-to-get-your-exchange-online-web-service-url-from-office-365
How to get your Exchange Online Web Service URL from Office 365
The URL of Exchange Online Web Service is a URL like "https://" + "Server name" + "/EWS/Exchange.amsx", for example, https://pod51024.outlook.com/ews/exchange.amsx. You can refer to steps below to find the URL of exchange web service for your mailbox.
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 1039104 › office-365-exchange-url-https-outlook-office365-co
Office 365 exchange url :https //outlook.office365.com/ews/exchange.asmx not working - Microsoft Q&A
Hello Team, We used office 365e xchnage service url to send email for an application. Now we observed emails are not being read and send using office365 exchange service url https //outlook.office365.com/ews/exchange.asmx .
🌐
CloudM
support.cloudm.io › hc › en-us › articles › 20776181593628-Finding-your-Exchange-Autodiscovery-or-EWS-URL-for-Migration
Finding your Exchange Autodiscovery or EWS URL for Migration – CloudM
If you are unsure of your EWS URL, ... for your environment. Resource: Use the official Microsoft Remote Connectivity Analyzer to test and identify your EWS URL under the "Exchange Server" tests....
Top answer
1 of 4
23

You can use the code below to connect to the EWS on office 365:

ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013_SP1);

service.Credentials = new WebCredentials("[email protected]", "password");
service.AutodiscoverUrl("[email protected]", RedirectionUrlValidationCallback);

You need define one callback function for the AutodiscoveryUrl function, like this:

private static bool RedirectionUrlValidationCallback(string redirectionUrl)
{
    // The default for the validation callback is to reject the URL.
    bool result = false;

    Uri redirectionUri = new Uri(redirectionUrl);

    // Validate the contents of the redirection URL. In this simple validation
    // callback, the redirection URL is considered valid if it is using HTTPS
    // to encrypt the authentication credentials. 
    if (redirectionUri.Scheme == "https")
    {
        result = true;
    }
    return result;
}
2 of 4
4

There appear to have been a few changes in EWS connection to office365 in regards to security, causing Matt's answer to not work for me.

What did work is the following:

ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013_SP1)
{
     Credentials = new WebCredentials("user", "password", "domain"),
     Url = new Uri("https://outlook.office365.com/EWS/Exchange.asmx")
};

Important notes:

  • AutodiscoverUrl did not complete successfully, it failed to discover the URL every time

  • user must be the full email address of the user.

  • domain is the NetBIOS domain name, meaning it is only the domain name. You can find the domain in the Microsoft 365 admin center under Settings -> Domains. The easiest way is to find the fallback domain in the form of domain.onmicrosoft.com. Take only the domain part.

  • The user must be a Microsoft 365 admin

  • Any change in one of these parameters caused an Unauthorized exception.

EDIT

Basic authentication is no longer supported by Microsoft. Follow this article on how to connect to EWS via OAuth. Worked on the very first try with no issues.