I'm trying to configure CRM 2016 Update 1 on-premises to authenticate to Exchange Online (Office 365) for server-side sync.
I've followed all the steps in this document: https://technet.microsoft.com/en-us/library/mt703269.aspx but when I try to test the connection for my email server profile, I get an error at the step titled, "Authorizing by using Microsoft Azure Access Control service (ACS)".
Using Auto Discover, the error says:
*****************************
Response from Exchange:
*****************************
Microsoft.Exchange.WebServices.Data.ServiceRequestException: The request failed. The request was aborted: The request was canceled. ---> System.Net.WebException: The request was aborted: The request was canceled. ---> Microsoft.Crm.CrmException: Access token could not be obtained from: accounts.accesscontrol.windows.net/.../2 for resource: [server GUID]/autodiscover-s.outlook.com@[my tenantId]
When I specify the server location (https://outlook.office365.com/EWS/Exchange.asmx) instead of using AutoDiscover, I get the following error:
*********************
Message from CRM::
*********************
Aquiring Token from ACS has failed. Please check if your tenantId is specified correctly in your Email Server Profile, and make sure your Exchange and CRM are under the same tenant
I've verified that the tenantId is set properly, but it wouldn't make sense that a CRM on-premises installation would be "under the same tenant" as Exchange Online. What's more confusing is that the CRM on-premises <-> SharePoint Online side of things seems to be working fine.
Please help!