Dec 21 2021 11:06 PM - edited Dec 21 2021 11:50 PM
APIs we are using:
Doc: https://docs.microsoft.com/en-us/graph/api/intune-devices-manageddevice-list?view=graph-rest-1.0
API: {{GRAPH_API_V1}}/deviceManagement/managedDevices?
$filter=operatingSystem%20eq%20'Android'
API: {{GRAPH_API_BETA}}/deviceManagement/managedDevices/executeAction
Response:
{
"error": {
"code": "UnknownError",
"message": "{\"ErrorCode\":\"Forbidden\",\"Message\":\"{\\r\\n \\\"_version\\\": 3,\\r\\n \\\"Message\\\": \\\"An error has occurred - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: 526d6bdf-6f83-47a9-bf81-ca89df4f6b6d - Url: https://fef.msuc02.manage.microsoft.com/DeviceFE/StatelessDeviceFEService/deviceManagement/managedDevices?api-version=2021-04-07&$filter=operatingSystem+eq+%27Android%27\\\",\\r\\n \\\"CustomApiErrorPhrase\\\": \\\"\\\",\\r\\n \\\"RetryAfter\\\": null,\\r\\n \\\"ErrorSourceService\\\": \\\"\\\",\\r\\n \\\"HttpHeaders\\\": \\\"{\\\\\\\"WWW-Authenticate\\\\\\\":\\\\\\\"Bearer realm=\\\\\\\\\\\\\\\"urn:intune:service,c3998d6e-2e37-4c56-87b5-7b444ee1cb26,f0f3c450-59bf-4f0d-b1b2-0ef84ddfe3c7\\\\\\\\\\\\\\\"\\\\\\\"}\\\"\\r\\n}\",\"Target\":null,\"Details\":null,\"InnerError\":null,\"InstanceAnnotations\":[]}",
"innerError": {
"date": "2021-12-22T05:28:40",
"request-id": "526d6bdf-6f83-47a9-bf81-ca89df4f6b6d",
"client-request-id": "526d6bdf-6f83-47a9-bf81-ca89df4f6b6d"
}
}
}
Dec 21 2021 11:37 PM
Hi good morning how do you use them? Delegated permissions or application permissions. I have seen some issues with the graph api in the past
Powershell Graph IsEncrypted and dealing with API errors (call4cloud.nl)
I will try to see whats happening at my side
Dec 21 2021 11:48 PM
Dec 21 2021 11:49 PM
Dec 21 2021 11:54 PM
Dec 22 2021 12:46 AM
SolutionDec 22 2021 03:42 AM
Dec 22 2021 05:08 AM
Dec 22 2021 06:17 AM
Dec 22 2021 12:46 AM
Solution