SOLVED

Microsoft 365 usage data from Graph API broken?

Copper Contributor

Hi Everyone,

 

I've been using data from the Graph API for Mailbox and OneDrive usage statistics for a while, but for the last few days it seems that it broken.

 

If I run the following in the Graph Explorer, it just fails with no response, not even valid headers are returned. (documented here: https://docs.microsoft.com/en-us/graph/api/reportroot-getmailboxusagedetail?view=graph-rest-1.0)

 

GET https://graph.microsoft.com/v1.0/reports/getMailboxUsageDetail(period='D7') 

 

Anyone else having this issue?

4 Replies
Graph explorer doesn't render CSV files, which is the default response you will receive from calling the above. Use Postman or any other tool, or just request the JSON instead

For example:
GET https://graph.microsoft.com/beta/reports/getEmailAppUsageUserDetail(period='D7')?$format=application...

Thanks @VasilMichev 

 

Turns out the CSV data is being returned, but is in the wrong format. The UPN and Display Names are showing as some sort of GUID or ID, instead of actually showing the correct data. This is why my integration broke. Anyone seen this or know why its happening? Pic attached.

 

 

best response confirmed by Hugh_Burns (Copper Contributor)
1 best response

Accepted Solutions