<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to Get all Recipients of an email message with EWS O365 Integration Query in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-get-all-recipients-of-an-email-message-with-ews-o365/m-p/1232766#M4086</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/1097405115"&gt;@xdrengineer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="whitespace-normal break-words"&gt;Microsoft has deprecated the ApplicationImpersonation access type as of February 2025, making the traditional EWS approach increasingly problematic for organization-wide searches.&lt;/P&gt;
&lt;P class="whitespace-normal break-words"&gt;&lt;STRONG&gt;Reference:&lt;/STRONG&gt; &lt;A class="underline" href="https://xsoar.pan.dev/docs/reference/integrations/ewso365" target="_blank"&gt;EWS O365 Integration Documentation&lt;/A&gt;&lt;/P&gt;
&lt;P class="whitespace-normal break-words"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="whitespace-normal break-words"&gt;The issue you're encountering is a fundamental access restriction in how the EWS O365 integration operates. When you execute &lt;CODE class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded-[0.4rem] px-1 py-px text-[0.9rem]"&gt;!ews-search-mailbox query="Subject:&amp;lt;anything here&amp;gt;"&lt;/CODE&gt;, the integration can only return emails from mailboxes where the configured service account has explicit access permissions.&lt;/P&gt;
&lt;P class="whitespace-normal break-words"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="whitespace-normal break-words"&gt;&lt;STRONG&gt;Simply:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL class="[&amp;amp;:not(:last-child)_ul]:pb-1 [&amp;amp;:not(:last-child)_ol]:pb-1 list-disc space-y-1.5 pl-7"&gt;
&lt;LI class="whitespace-normal break-words"&gt;Your search results are limited to emails where the configured Email ID appears in the "To" or "CC" fields&lt;/LI&gt;
&lt;LI class="whitespace-normal break-words"&gt;You cannot retrieve the complete recipient list for emails across other mailboxes in your organization&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;The EWS integration requires specific mailbox-level permissions to access each user's emails. Even with &lt;CODE class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded-[0.4rem] px-1 py-px text-[0.9rem]"&gt;full_access_as_app&lt;/CODE&gt; permissions and the &lt;CODE class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded-[0.4rem] px-1 py-px text-[0.9rem]"&gt;ApplicationImpersonation&lt;/CODE&gt; role, the integration can only search mailboxes where access has been explicitly granted through Application Access Policies.&lt;/P&gt;
&lt;P class="whitespace-normal break-words"&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jun 2025 11:00:10 GMT</pubDate>
    <dc:creator>A.Elzedy</dc:creator>
    <dc:date>2025-06-27T11:00:10Z</dc:date>
    <item>
      <title>How to Get all Recipients of an email message with EWS O365 Integration Query</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-get-all-recipients-of-an-email-message-with-ews-o365/m-p/1232665#M4085</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am integrating XSOAR with EWS O365, and I am building a phishing PB, that starts with query based on subject of an email, in order to get the item-id of that email message and also the recipients of that email to take action on each of them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem is that, when I run the search based on the subject using&amp;nbsp;!ews-search-mailbox query="Subject:&amp;lt;anything here&amp;gt;", I expect to ge the full list of recipients, alongside the other fields, like sender, item-id, ...etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But in fact I get a result that is limited only to the emails where the "to" OR "cc" is the email-id that is used in the configuration of the connector.&amp;nbsp; -The connector uses App ID, Token, and Email ID-.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I get the full list of recipient of specific email with the !ews-search-mailbox based on Subject please.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 13:46:54 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-get-all-recipients-of-an-email-message-with-ews-o365/m-p/1232665#M4085</guid>
      <dc:creator>xdrengineer</dc:creator>
      <dc:date>2025-06-26T13:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get all Recipients of an email message with EWS O365 Integration Query</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-get-all-recipients-of-an-email-message-with-ews-o365/m-p/1232766#M4086</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/1097405115"&gt;@xdrengineer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="whitespace-normal break-words"&gt;Microsoft has deprecated the ApplicationImpersonation access type as of February 2025, making the traditional EWS approach increasingly problematic for organization-wide searches.&lt;/P&gt;
&lt;P class="whitespace-normal break-words"&gt;&lt;STRONG&gt;Reference:&lt;/STRONG&gt; &lt;A class="underline" href="https://xsoar.pan.dev/docs/reference/integrations/ewso365" target="_blank"&gt;EWS O365 Integration Documentation&lt;/A&gt;&lt;/P&gt;
&lt;P class="whitespace-normal break-words"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="whitespace-normal break-words"&gt;The issue you're encountering is a fundamental access restriction in how the EWS O365 integration operates. When you execute &lt;CODE class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded-[0.4rem] px-1 py-px text-[0.9rem]"&gt;!ews-search-mailbox query="Subject:&amp;lt;anything here&amp;gt;"&lt;/CODE&gt;, the integration can only return emails from mailboxes where the configured service account has explicit access permissions.&lt;/P&gt;
&lt;P class="whitespace-normal break-words"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="whitespace-normal break-words"&gt;&lt;STRONG&gt;Simply:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL class="[&amp;amp;:not(:last-child)_ul]:pb-1 [&amp;amp;:not(:last-child)_ol]:pb-1 list-disc space-y-1.5 pl-7"&gt;
&lt;LI class="whitespace-normal break-words"&gt;Your search results are limited to emails where the configured Email ID appears in the "To" or "CC" fields&lt;/LI&gt;
&lt;LI class="whitespace-normal break-words"&gt;You cannot retrieve the complete recipient list for emails across other mailboxes in your organization&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;The EWS integration requires specific mailbox-level permissions to access each user's emails. Even with &lt;CODE class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded-[0.4rem] px-1 py-px text-[0.9rem]"&gt;full_access_as_app&lt;/CODE&gt; permissions and the &lt;CODE class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded-[0.4rem] px-1 py-px text-[0.9rem]"&gt;ApplicationImpersonation&lt;/CODE&gt; role, the integration can only search mailboxes where access has been explicitly granted through Application Access Policies.&lt;/P&gt;
&lt;P class="whitespace-normal break-words"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2025 11:00:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-get-all-recipients-of-an-email-message-with-ews-o365/m-p/1232766#M4086</guid>
      <dc:creator>A.Elzedy</dc:creator>
      <dc:date>2025-06-27T11:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get all Recipients of an email message with EWS O365 Integration Query</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-get-all-recipients-of-an-email-message-with-ews-o365/m-p/1232768#M4087</link>
      <description>&lt;P class="whitespace-normal break-words"&gt;&lt;FONT size="4"&gt;Here are some options/alternatives:&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="whitespace-normal break-words"&gt;&lt;FONT size="4"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Option 1: Exchange Message Logs with XQL Queries&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="whitespace-normal break-words"&gt;You could be ingesting Exchange message logs into your siem and run XQL queries to search by subject across all organizational email traffic. So you can get a complete historical visibility without API permission constraints&lt;/P&gt;
&lt;P class="whitespace-normal break-words"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Option 2: Alternative PowerShell Command&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="whitespace-normal break-words"&gt;Switch to&amp;nbsp;&lt;A class="underline" href="https://xsoar.pan.dev/docs/reference/integrations/ews-extension-online-powershell-v3" target="_blank" rel="noopener"&gt;EWS Extension Online PowerShell v3&lt;/A&gt; integration with &lt;CODE class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded-[0.4rem] px-1 py-px text-[0.9rem]"&gt;!ews-message-trace-get&lt;/CODE&gt; commands for organization-wide searches. This approach will bypass individual mailbox permission requirements.&lt;/P&gt;
&lt;P class="whitespace-normal break-words"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Option 3: Microsoft Graph API Integration&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="whitespace-normal break-words"&gt;Switch to the &lt;A class="underline" href="https://xsoar.pan.dev/docs/reference/integrations/microsoft-graph-mail" target="_blank" rel="noopener"&gt;O365 Outlook Mail (Using Graph API)&lt;/A&gt; integration with organizational scope. This is Microsoft's preferred direction for email automation workflows.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2025 11:16:25 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-get-all-recipients-of-an-email-message-with-ews-o365/m-p/1232768#M4087</guid>
      <dc:creator>A.Elzedy</dc:creator>
      <dc:date>2025-06-27T11:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get all Recipients of an email message with EWS O365 Integration Query</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-get-all-recipients-of-an-email-message-with-ews-o365/m-p/1232947#M4088</link>
      <description>&lt;P&gt;Hello &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/928866483"&gt;@A.Elzedy&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for your responses,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am looking at the shared alternate solutions you provided!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;I am not sure what is the difference if I use&amp;nbsp; O365 Outlook Mail (Using Graph API), instead of EWS O365 from permission point?&lt;/P&gt;
&lt;P&gt;More over the commands mentioned in the document of the shared link of&amp;nbsp; &lt;A class="underline" href="https://xsoar.pan.dev/docs/reference/integrations/microsoft-graph-mail" target="_blank" rel="noopener nofollow noreferrer"&gt;O365 Outlook Mail (Using Graph API)&lt;/A&gt;&amp;nbsp; is not there on the Microsoft Graph API App from market place.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please clarify what I may have missed here!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 07:23:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-get-all-recipients-of-an-email-message-with-ews-o365/m-p/1232947#M4088</guid>
      <dc:creator>xdrengineer</dc:creator>
      <dc:date>2025-07-01T07:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get all Recipients of an email message with EWS O365 Integration Query</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-get-all-recipients-of-an-email-message-with-ews-o365/m-p/1232968#M4090</link>
      <description>&lt;P&gt;Well, the key advantage of Microsoft Graph. It offers highly granular permissions. Instead of a blanket "full access," you can grant an application specific permissions like &lt;CODE&gt;Mail.Read&lt;/CODE&gt; (read mail), &lt;CODE&gt;Mail.ReadWrite&lt;/CODE&gt; (read and write mail), &lt;CODE&gt;Mail.Send&lt;/CODE&gt; (send mail), and importantly, &lt;CODE&gt;Mail.Read.Shared&lt;/CODE&gt; (read shared mailboxes) or &lt;CODE&gt;Mail.ReadBasic.All&lt;/CODE&gt; (read basic mail for all users) and &lt;CODE&gt;Mail.Read.All&lt;/CODE&gt; (read all mail for all users) when granted as &lt;STRONG&gt;application permissions&lt;/STRONG&gt;. This means you can scope down exactly what your integration can do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for your second question, it's available here&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://xsoar.pan.dev/docs/reference/integrations/ews-extension-online-powershell-v3#ews-message-trace-get" target="_blank" rel="noopener"&gt;https://xsoar.pan.dev/docs/reference/integrations/ews-extension-online-powershell-v3#ews-message-trace-get&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 17:20:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/how-to-get-all-recipients-of-an-email-message-with-ews-o365/m-p/1232968#M4090</guid>
      <dc:creator>A.Elzedy</dc:creator>
      <dc:date>2025-09-16T17:20:46Z</dc:date>
    </item>
  </channel>
</rss>

