Showing results for 
Search instead for 
Did you mean: 
New Member

API Defendern 365

Hello guys, good afternoon!


I want to export report from defender and send to power bi. I want to know, how do i export:


Email Collaboration;

status of mail flow

status of threat

principal malware.


All the information, i want that be in real time. 

Community Support
Community Support

Hi @Iuri ,


To export reports from Microsoft Defender for Office 365 to Power BI, you can use the Microsoft Graph Security API. You can use the API to retrieve data on email collaboration, mail flow status, threat status, and malware status. You can then use Power BI to create visualizations and reports based on the data.


Search-UnifiedAuditLog (ExchangePowerShell) | Microsoft Learn

Power BI REST APIs for embedded analytics and automation - Power BI REST API | Microsoft Learn


Please note that real-time data export may not be possible for all types of data. You may need to schedule regular data exports to ensure that your reports are up-to-date.



Best Regards,

Stephen Tao


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

Helpful resources

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors
Top Kudoed Authors