【问题标题】:Fail to SyncFolderHierarchy encounter ErrorAccessDenied The user context is missingSyncFolderHierarchy 失败遇到 ErrorAccessDenied The user context is missing
【发布时间】:2021-06-03 09:42:05
【问题描述】:

最近当我向一些用户请求 SyncFolderHierarchy 以获取就地存档邮箱时,它返回错误:

ErrorAccessDenied - This EWS API requires being called with a user context. The user context is missing.

MS 服务器端是否有可能出现问题?

对于某些用户,此 API 可以正常工作。

完整回复:

< HTTP/1.1 200 OK
< Cache-Control: private
< Transfer-Encoding: chunked
< Content-Type: text/xml; charset=utf-8
< Server: Microsoft-IIS/10.0
< request-id: 8159ef05-2f55-4513-a19f-c8d2d82fd54c
< X-CalculatedBETarget: HK0PR06MB3795.apcprd06.prod.outlook.com
< X-BackEndHttpStatus: 200
< Set-Cookie: exchangecookie=ca46acb77ecb4a86816eba2faebddbd8; expires=Fri, 03-Jun-2022 09:08:22 GMT; path=/; secure; HttpOnly
< X-RUM-Validated: 1
< x-ms-appId: af08ce07-1df9-4a39-b6e6-092ac934eb21
< x-EwsHandler: SyncFolderHierarchy
< X-AspNet-Version: 4.0.30319
< X-BeSku: WCS5
< X-DiagInfo: HK0PR06MB3795
< X-BEServer: HK0PR06MB3795
< X-Proxy-RoutingCorrectness: 1
< X-Proxy-BackendServerStatus: 200
< X-Powered-By: ASP.NET
< X-FEServer: HK2PR06CA0023
< Date: Thu, 03 Jun 2021 09:08:24 GMT
<
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Header>
        <h:ServerVersionInfo MajorVersion="15" MinorVersion="20" MajorBuildNumber="4173" MinorBuildNumber="30" Version="V2018_01_08"
            xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types"
            xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
    </s:Header>
    <s:Body>
        <m:SyncFolderHierarchyResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
            xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
            <m:ResponseMessages>
                <m:SyncFolderHierarchyResponseMessage ResponseClass="Error">
                    <m:MessageText>This EWS API requires being called with a user context. The user context is missing.</m:MessageText>
                    <m:ResponseCode>ErrorAccessDenied</m:ResponseCode>
                    <m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
                    <m:SyncState/>
                    <m:IncludesLastFolderInRange>true</m:IncludesLastFolderInRange>
                </m:SyncFolderHierarchyResponseMessage>
            </m:ResponseMessages>
        </m:SyncFolderHierarchyResponse>
    </s:Body>
</s:Envelope>

【问题讨论】:

    标签: exchangewebservices ews-managed-api


    【解决方案1】:

    微软支持确认他们已经在后端解决了问题,现在可以正常工作了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-06-17
      • 2022-11-20
      • 2022-12-27
      • 2011-12-25
      • 2021-09-12
      • 1970-01-01
      • 2022-12-01
      • 2018-01-20
      相关资源
      最近更新 更多