Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17881

Connecting to Microsoft Graph API to report on Email Activity, Do I need an authentication token?

$
0
0

Hello,

 

At the very core, I'm essentially aiming to recreate the Office 365 Admin Center Email Activity report that shows the number of Send, Receive and Read actions on emails for each user within Power BI.

 

I have located a report within the Microsoft Graph API that appears to be similar (though if anyone knows specifically where I need to be looking, any guidance would be wonderful), but I get an error stating "Access to the resource is forbidden." when I try to use the following URL with an OData Feed Data Source:

 

https://graph.microsoft.com/beta/reports/getEmailActivityUserCounts(period='D180')?$format=application/json

 

I can access this Report and receive data back fine within Microsoft Graph Explorer, and I think the reason it's not working is because I require some sort of Authentication Token or need to send the necessary Headers with my OData Feed Source, but I'm not entirely sure how to using the "Blank Query" source.

 

If anyone has any knowledge on how to do any of the above it would be greatly appreciated.

 

Thanks.


Viewing all articles
Browse latest Browse all 17881

Trending Articles