SOLVED

Could not fetch o365 usage Reports API

Copper Contributor

Hello,

In graph explorer, I'm able to get results for basic sample API's as described in Graph explorer sample queries, (ex: request: /users/<tenantid>/drives), but for reports usage API, could not able to fetch details for any other GET requests, getting the below error everytime. I've checked and given all the permissions as mentioned in docs. Need help regarding the unknown tenant id..

 

https://graph.microsoft.com/beta/reports/getOneDriveActivityUserCounts(period='D7')?$format=applicat....


Output error: 

"code": "UnknownError",

"message": "{\"error\":{\"code\":\"UnknownTenantId\",\"message\":\"We do not recognize this tenant ID 5b1afc8e-xxxx-4842-xxxx-xxxxxx. Please double-check the tenant ID and try again.\"}}",

 

1 Reply
best response confirmed by gaurav_k (Copper Contributor)
Solution

If this is a new tenant, it might take a while for the report service to pick it up and start generating reports. In any case, contact support and report this.

1 best response

Accepted Solutions
best response confirmed by gaurav_k (Copper Contributor)
Solution

If this is a new tenant, it might take a while for the report service to pick it up and start generating reports. In any case, contact support and report this.

View solution in original post