2017-05-19 11 views
0

私は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> 
+0

を、私は同様の問題だった - しようとする(直接ユーザーの資格情報を使用して)偽装せずに、要求を実行しようとします権限の問題を解消します。 私の場合、偽装に問題がありました。 EWSエディタでテストしましたか? https://ewseditor.codeplex.com/ – sborpo

+0

ありがとう@sborpoはい - 私もそれを試しました。私は問題の内容を確認するのを手伝ったMSのサポートエンジニアと一緒に運が良かった。私は質問を更新します – Keshi

答えて

0

は、この問題を解決することができたです。デリゲートの共有がモデル化されたやり方に変化があるようです。デリゲート権限をEACまたはオフィスポータル経由で完全なアクセス権で割り当てる従来の方法はもはや機能しません。デリゲートとして表示されません。これは、MSサポートエンジニアによって確認されました。

代理人が働く唯一の方法は、ユーザーのメールボックス内の特定のフォルダに対するアクセス許可を持つ追加されたユーザーによるものです。詳しい情報はここで見つけることができます:

https://support.microsoft.com/en-us/help/2572646/how-to-grant-exchange-and-outlook-mailbox-permissions-in-office-365-dedicated

Outlookクライアント経由での設定: https://blogs.office.com/2013/09/04/configuring-delegate-access-in-outlook-web-app/

関連する問題