I try to use Office 365 usage reports in Graph API. I would like for example export the EmailActivity report with the request GET /reports/EmailActivity(view=view-value, period=period-value, date=date-value)/content
When I try the example https://graph.microsoft.com/beta/reports/EmailActivity(view='Detail',period='D7')/content in Graph Explorer I have the following error
Failure - Status Code 403705msLooks like you may not have the permissions for this call. Please modify your permissions.
{
"error": {
"code": "Forbidden",
"message": "Invalid scope claims/roles.",
"innerError": {
"request-id": "f1f89dcf-b2df-4537-a4ad-f07ccfff2899",
"date": "2017-07-05T17:01:23"
}
}
}
I don't uderstand because I looging like an admin of Office 365 I have add almost all the permision. What I had miss ?
Edit : More details,
I use Graph Explorer, when I click to grant access
I have th confirmation
I've the admin right
I try my request in graph explorer
And I have my error
I don't know what I could do be better.