问题
I try to call Microsoft Graph APIs reports call: https://graph.microsoft.com/beta/reports/getOffice365ActiveUserDetail(period='D7')
But it fails with error HTTP 403. Is there a way exists to overcome this?
回答1:
- With Microsoft Graph explorer i can repro the issue with the same API call. HTTP 403 is forbidden error. It tells that you're not allowed or dont have permission to call the API. Make sure you have necessary permissions.
- Tried updating the permission "Reports.Read.all", with admin consent provided so i can read all the usage reports. Now, i tried with Graph explorer, and it works for me.
- You tested the same, confirmed it works for you.
- Here's the related documentation!!
回答2:
As @Dev said,please add the Delegated permisson or the Application permission below and test it again.
来源:https://stackoverflow.com/questions/64793803/microsoft-graph-api-call-getoffice365activeuserdetail-fails-with-http-403