Looking for the required permissions to post to this graph path: /deviceManagement/reports/getAppStatusOverviewReport

Garland Port 1 Reputation point
2022-11-29T17:24:00.593+00:00

Describe the bug
When I try to post to this URL:
https://graph.microsoft.com/beta/deviceManagement/reports/getAppStatusOverviewReport
With this body:
{
"filter": "(ApplicationId eq 'efd328e8-c746-4b70-ad10-38594c1f0e09')"
}
I get this error:
{
"error": {
"code": "UnknownError",
"message": "{"ErrorCode":"Forbidden","Message":"{\ \"_version\": 3,\ \"Message\": \"An error has occurred - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: 820c8b70-fa74-0303-b6b3-0166b70e2b10 - Url: https://fef.msua08.manage.microsoft.com/AppLifecycle_2211/StatelessAppMetadataFEService/deviceManagement/reports/microsoft.management.services.api.getAppStatusOverviewReport?api-version=5022-09-01\\",\\ \"CustomApiErrorPhrase\": \"\",\ \"RetryAfter\": null,\ \"ErrorSourceService\": \"\",\ \"HttpHeaders\": \"{\\"WWW-Authenticate\\":\\"Bearer realm=\\\\"urn:intune:service,9225b241-44e1-44a8-8bfe-c10e39177505,f0f3c450-59bf-4f0d-b1b2-0ef84ddfe3c7,3e9c57b9-808d-4aa0-9500-4b2d369279e7\\\\"\\"}\"}","Target":null,"Details":null,"InnerError":null,"InstanceAnnotations":[]}",
"innerError": {
"date": "2022-11-17T14:53:00",
"request-id": "0a7d8080-29c0-43bc-816a-c7893a19f73e",
"client-request-id": "820c8b70-fa74-0303-b6b3-0166b70e2b10"
}
}
}

This query works on my admin account. I must be missing a permission, but it does not tell me which.

To Reproduce
Steps to reproduce the behavior:

In graph explorer, execute above query
Expected behavior
Should show which permission is missing

Additional context
Add any other context about the problem here.
](https://graph.microsoft.com/beta/deviceManagement/reports/getAppStatusOverviewReport)](https://graph.microsoft.com/beta/deviceManagement/reports/getAppStatusOverviewReport)

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,675 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. 2022-12-02T12:41:55.72+00:00

    Hi @Garland Port ,

    There is another way of getAppStatusOverviewReport for device Management reports:

    Get-MgDeviceManagementReportAppStatusOverviewReport  
       -OutFile <String>  
       [-AdditionalProperties <Hashtable>]  
       [-Filter <String>]  
       [-GroupBy <String[]>]  
       [-Name <String>]  
       [-Property <String[]>]  
       [-Search <String>]  
       [-SessionId <String>]  
       [-Skip <Int32>]  
       [-Sort <String[]>]  
       [-Top <Int32>]  
       [-PassThru]  
       [-WhatIf]  
       [-Confirm]  
       [<CommonParameters>]  
    

    For more information:https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.devicemanagement.actions/get-mgdevicemanagementreportappstatusoverviewreport?view=graph-powershell-beta

    ----------

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".