A common cause of authentication failures when configuring the Exchange connector to work with Exchange Web Services (EWS) is using the incorrect URL. Please note that URLs containing "OWA", are not usually the URL required by ShareScan for Exchange Web Services.


For Microsoft Office 365:


Access the mailbox account using Outlook Web Access (OWA)

Click Options / See All Options / Account / My Account / Settings for POP, IMAP, and SMTP access

In the list of entries, find the server name.

The URL of exchange web service for the mailbox is the URL: https://<online-URL>/ews/exchange.asmx

For on premise Microsoft Exchange server:

The default URL for EWS is https://<mail.server>/ews/exchange.asmx

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



2. Use the Outlook 2007 or 2010 Auto Discovery feature

a. Hold the Ctrl key and right click on the Outlook Icon in the system tray

(Note this must be outlook version 2007 or 2010)

b. Select "Test E-mail Auto Configuration" from the menu

c. Type in an email address located on the desired Exchange server

d. Ensure that only the "Use Auto Discover" checkbox is enabled


 NOTE:


 For Auto Discovery, any valid email address can be used, it just recommended to use email address of the user in the Protocol tab. The email address is used for two purposes: the right part after @ character (the domain name) is used to locate the Auto Discovery service when the connector is used outside of Windows domain. (Within a domain system, the Auto Discovery service location is fetched from the Active Directory) When Auto Discovery service is located, the entire email address
is sent to the service, and the service estimates the best (optimal) EWS service URL which can be used to access the mailbox of the user. So when there are multiply EWS entry points in the system, you should choose an appropriate email address for access every entry point (this means you have to create at least one connector profile per entry points - you can do that based on structure of organization of
the user company).

e. Click "Test"

f. Find the line starting with "Availability Service URL" this line contains the EWS URL