Outlook Rest API - 503 服务仅对域中的一个用户不可用,其他用户工作

Outlook Rest API - 503 Service Unavailable for only one user in the domain, other users work

我正在尝试帮助用户连接到 Outlook API。此人的三位同事都拥有相同的电子邮件域,能够成功连接并执行 API 调用,但一位用户收到 503 服务不可用响应。

用户能够成功获取访问令牌,并且该访问令牌也能够成功刷新。

这是来自 "Outlook Dev Center - Oauth Sandbox Tool" https://oauthplay.azurewebsites.net/.

的示例请求和响应
GET https://outlook.office.com/api/v2.0/me/mailfolders/sentitems/messages?$filter=sentdatetime%20ge%202017-02-13T00:00:00Z HTTP/1.1
Accept: text/*, application/xml, application/json; odata.metadata=none
User-Agent: PlayGroundAgent/1.0
Authorization: Bearer {hidden}
client-request-id: ce0330c6-56cd-4ab9-b3ab-69670b565cac
X-AnchorMailbox: {hidden}


HTTP/1.1 503 Service Unavailable
Transfer-Encoding: chunked
request-id: c81e91cc-705d-4abe-a6e5-5bafbdd62b87
X-CalculatedFETarget: MWHPR01CU001.internal.outlook.com
X-BackEndHttpStatus: 503, 503
X-FEProxyInfo: MWHPR01CA0012.PROD.EXCHANGELABS.COM
X-CalculatedBETarget: MWHPR16MB1583.namprd16.prod.outlook.com
OData-Version: 4.0
X-DiagInfo: MWHPR16MB1583
X-BEServer: MWHPR16MB1583
X-FEServer: MWHPR01CA0012, MWHPR15CA0056
Cache-Control: private
Date: Mon, 13 Feb 2017 20:11:39 GMT
Set-Cookie: exchangecookie={hidden}; expires=Tue, 13-Feb-2018 20:11:40 GMT; path=/; HttpOnly
Server: Microsoft-IIS/8.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET

{
    "error": {
        "code": "ErrorServiceUnavailable",
        "message": "Active Directory operation did not succeed. Try again later."
    }
}

我的理解是这个用户曾经在Exchange上,最近几年迁移到了Office 365。能够连接的三个用户最初不在 Exchange 上,他们都在 Office 365 上创建了全新的帐户。我的假设是从 Exchange 到 Office 365 的迁移过程中的某些内容导致了 503 服务不可用响应。

当用户的消费者帐户和企业帐户具有相同的 SMTP 地址时,可能会出现此问题。最简单的解决方案可能是在授权将使用 Outlook API.

的应用程序时仅 select 正确的帐户

用户还可以按照本文所述更改消费者帐户的别名:https://support.office.com/en-us/article/-Something-went-wrong-page-with-error-ADDriverStoreAccessNonLocalException-4133f321-4af1-4f7d-98af-7756f5892bb7?ui=en-US&rs=en-US&ad=US