相同域用户的自动发现 url

Autodiscovery url for same domain users

我正在使用 EWS 托管 API 来实现与交换服务器的通知订阅。所以,我想弄清楚我是否可以假设同一域内用户的自动发现 url 是相同的?

Autodiscover 用于获取有关如何自行连接到交换服务器的必要信息,需要最少的用户输入。它通过从用户电子邮件地址中获取域并使用它测试各种标准 EWS Exchange-Endpoints 来实现。

一个例子:

"https://" + domain + "/autodiscover/autodiscover" + fileExtension

因为同一个域中的用户与同一个交换服务器通信,AutodiscoverURL 对所有用户保持不变。

除非您的网络拓扑非常简单(例如一台服务器等),否则您应该使用自动发现为所有用户计算端点,因此做出该假设不是最佳做法。 Autodiscover return 的 URL 可能因多种原因而不同,例如不同的内部和外部交换配置 https://technet.microsoft.com/en-us/library/hh529912(v=exchg.150).aspx (so depending on the client location). Also if your using notifications on Exchange 2013 and up for multiple users then you should be using Autodiscover to get the grouping information for the users https://msdn.microsoft.com/en-us/library/office/dn458789(v=exchg.150).aspx,因此您可以正确维护亲和力。