question

SA1Admin-7744 avatar image
1 Vote"
SA1Admin-7744 asked saldana-msft edited

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

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-graph-permissionsmicrosoft-graph-corporate-mgmt
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

CarlZhao-MSFT avatar image
0 Votes"
CarlZhao-MSFT answered

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.



215.png (76.7 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.