私はEWS管理APIを使用して交換管理関連情報を取得しています。デリゲートが設定されているにもかかわらず、getDelegatesコールは常に空のレスポンスを返します。実際には、エクスチェンジログのイベントを交換用に参照しています。受信トレイルールの取得などの他のAPI呼び出しは、同じアプローチを使用してうまく動作します。代理人を取得する空の応答を返すEWS 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>[email protected]</t:PrincipalName>
</t:ConnectingSID>
</t:ExchangeImpersonation>
</soap:Header>
<soap:Body>
<m:GetDelegate IncludePermissions="true">
<m:Mailbox>
<t:EmailAddress>[email protected]</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>
を、私は同様の問題だった - しようとする(直接ユーザーの資格情報を使用して)偽装せずに、要求を実行しようとします権限の問題を解消します。 私の場合、偽装に問題がありました。 EWSエディタでテストしましたか? https://ewseditor.codeplex.com/ – sborpo
ありがとう@sborpoはい - 私もそれを試しました。私は問題の内容を確認するのを手伝ったMSのサポートエンジニアと一緒に運が良かった。私は質問を更新します – Keshi