Share via

Graph Reports API does notreturn JSON in v1.0 only in beta. When is that going to be available in V1.0

Robert Gordon 6 Reputation points Microsoft Employee
2021-04-05T14:53:27.41+00:00

The graph V1.0 API for Reports does not return any information even the Try it returns nothing. For example the following docs article https://learn.microsoft.com/en-us/graph/api/reportroot-getonedriveusagefilecounts?view=graph-rest-1.0#code-try-1 to try to the code does not work.

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

Always return an error, even if you try it in beta. The following that has been working for over a year in beta returns the actual results:
https://graph.microsoft.com/beta/reports/getOneDriveUsageFileCounts(period='D7')?$format=application/json

When will there be some form of data retrieval working in v1.0 or will there be support for json results in the v1.0 all the various examples and try it that are posted under reports for v1.0 api fail.

Microsoft Security | Microsoft Graph

Your answer

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