Problem with 'list all web apps' and 'list all mobile apps' query

SA1 Admin 6 Reputation points
2021-06-08T15:12:44.03+00:00

Query: https://graph.microsoft.com/v1.0/deviceAppManagement/mobileApps

Response:

{
"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: 47c63016-6319-8c99-716e-70dcc94ad272 - Url: https://fef.amsua0102.manage.microsoft.com/AppLifecycle_2105/StatelessAppMetadataFEService/deviceAppManagement/mobileApps?api-version=2020-08-04\\\\",\\ \\"CustomApiErrorPhrase\\": \\"\\",\ \\"RetryAfter\\": null,\ \\"ErrorSourceService\\": \\"\\",\ \\"HttpHeaders\\": \\"{\\\\"WWW-Authenticate\\\\":\\\\"Bearer realm=\\\\\\\\"urn:intune:service,9225b241-44e1-44a8-8bfe-c10e39177505,f0f3c450-59bf-4f0d-b1b2-0ef84ddfe3c7\\\\\\\\"\\\\"}\\"\}\",\"Target\":null,\"Details\":null,\"InnerError\":null,\"InstanceAnnotations\":[]}",
"innerError": {
"date": "2021-06-08T15:07:31",
"request-id": "8fb5ec96-e441-4ed6-ad5e-69e67d4b04dc",
"client-request-id": "47c63016-6319-8c99-716e-70dcc94ad272"
}
}
}

Microsoft Security | Microsoft Graph
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 46,406 Reputation points
    2021-07-05T09:48:03.897+00:00

    According to my experience, you should be lack of permissions. The easiest way is to use graph explorer to directly request the api. This requires you to log in with an administrator account and consent to the DeviceManagementApps.Read.All permissions.

    111863-215.png


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.