How can i stream "Email" from security.microsoft.com ?

Sigma 1 Reputation point
2023-06-02T06:25:07.5066667+00:00

I am trying to stream "Email" from security.microsoft.com -> Settings -> Microsoft 365 Defender -> Streaming API.

However I can only see "Alerts" and "Devices".

Add New Streaming API

Lisenses


Microsoft Security Microsoft Defender Microsoft Defender for Cloud
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Fiona Matu 91 Reputation points Microsoft Employee
    2024-02-18T13:06:05.2966667+00:00

    Hi Sigma,

    The "security.microsoft.com" portal allows streaming for Alerts and Devices but it does not currently support streaming for emails directly. You can however use the Microsoft Graph API to access Email data, including details about messages, folders, and other mail-related data. Here is a link to the Graph API documentation for accessing mail data: Access mail data using Microsoft Graph. Remember that to access mail data, the necessary permissions (like Mail.ReadBasic.All) should be granted in Azure AD. For streaming data, you might need to implement a service that periodically fetches new emails using the API and then processes them as needed. Also, you might want to explore Logic Apps or Power Automate to create workflows that trigger on new emails: Automate tasks by using Office scripts with Power Automate

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.