我一直在使用EWS托管API来获取交换管理员相关信息。 getDelegates调用总是返回一个空响应,即使我已配置了委托,我实际上在审计日志中看到了事件以进行交换。其他API调用如获取收件箱规则等使用相同的方法工作得很好。
我是否需要做任何其他事情才能通过EWS将代理用户带到邮箱,或者这是不支持的?
这是请求xml:
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Header>
<t:RequestServerVersion Version="Exchange2013" />
<t:ExchangeImpersonation>
<t:ConnectingSID>
<t:PrincipalName>u2@xyz.com</t:PrincipalName>
</t:ConnectingSID>
</t:ExchangeImpersonation>
</soap:Header>
<soap:Body>
<m:GetDelegate IncludePermissions="true">
<m:Mailbox>
<t:EmailAddress>u2@xyz.com</t:EmailAddress>
</m:Mailbox>
</m:GetDelegate>
</soap:Body>
</soap:Envelope>
以下是回复
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15" MinorVersion="1" MajorBuildNumber="1084" MinorBuildNumber="30" Version="V2017_04_14" 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:GetDelegateResponse ResponseClass="Success" 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:ResponseCode>NoError</m:ResponseCode>
<m:DeliverMeetingRequests>DelegatesOnly</m:DeliverMeetingRequests>
</m:GetDelegateResponse>
</s:Body>
</s:Envelope>
答案 0 :(得分:1)
能够解决此问题。似乎代理共享的建模方式发生了变化。通过EAC或办公室门户分配具有完全访问权限的委托权限的传统方式不再有效。它不会显示为代表。这得到了MS支持工程师的证实。
我让代表工作的唯一方法是添加用户对用户邮箱中特定文件夹的权限。更多信息可以在这里找到:
通过Outlook客户端进行配置: https://blogs.office.com/2013/09/04/configuring-delegate-access-in-outlook-web-app/