Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Creating e-mail security dashboard

Hi everyone

 

I am trying to create a dashboard to show information regarding e-mail activity (e.g. number of e-mails received/sent, malware/spam e-mails blocked etc).  We currently do this using an Excel export from Office 365 (which is manually put together) and it looks as below:

 

Email Security Dashboard.jpg

 

This works fine but we now want to do this in a more automated fashion and I have been experimenting with connecting directly to Office 365 using the API, using these instructions.  This gives me audit log information though and doesn't seem to give me the information about e-mail that I need.

 

Has anyone else tried to do this or similar, and if so, which API did you use to get the correct data?  I'd be grateful for any pointers as at the moment I'm struggling to find the best way to get this information.

 

Thanks in advance for any help.

5 REPLIES 5
andrewsommer
Super User
Super User

The built in connector for Microsoft Exchange is pretty limited IMO. 

 

The best way to go about this is using the Microsoft Graph API. 

  1. Register an Azure AD App
    • Go to Azure Portal > "App Registrations" > "New Registration".
    • Grant necessary permissions (Mail.Read, Calendars.Read, Contacts.Read).
    • Generate a client secret.
  1. Use Power Query (M) or Power Automate to Pull Data

 

 

Please mark this post as solution if it helps you. Appreciate Kudos.

v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

You may try the built-in connector Microsoft Exchange.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@v-chuncz-msft

 

Thank you for your response.  I've just tried the built-in Exchange and Exchange Online connectors but it looks like I can only connect to a single mailbox?

 

Capture.PNG

 

I need to be able to connect to our Exchange environment as a whole as we want to report on oragnisation-wide e-mail numbers, malware etc.

Anonymous
Not applicable

Just checking if anyone knows if that I want to achieve is possible? I seem to have come up against a brick wall here and can't find a way of getting e-mail security information out of Office 365 to automatically feed into Power BI.

Did you ever progress with this? It's the exact same thing I am trying to acheive... thanks 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors