Microsoft Graph API call getOffice365ActiveUserDetail fails with HTTP 403

陌路散爱 提交于 2021-02-10 15:48:27

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!