Search code examples
microsoft-graph-apireport

Microsoft Graph API call getOffice365ActiveUserDetail fails with HTTP 403


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?


Solution

    • 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!!