SOLVED

Intune APIs not working since Yesterday [Dec 21 IST]

Copper Contributor

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'

 

Doc: https://docs.microsoft.com/en-us/graph/api/intune-devices-manageddevice-executeaction?view=graph-res...

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"
        }
    }
}

 

 

 

 

 

8 Replies

@Arun_Joseph 

 

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

application permissions
Could you try to see what happens with delegated permissions? to rule some stuff out... just like I told in that blog... I have seen it working with delegated permissions and breaking with application permissions
Just now logged into my endpoint account (https://endpoint.microsoft.com/)
but even there my devices are not listed. It is saying something went wrong. Is the MS Intune servers down?
best response confirmed by Arun_Joseph (Copper Contributor)
Solution
Hi,
not a licensing issue ? as I am not seeying any issues here (or maybe not yet :))
Happen to have another tenant to test it with?
Any idea how to ensure if the license is expired or not?
Hi, first you need to be sure you are licensed to use the intune portal or make sure you configured this one
https://docs.microsoft.com/en-us/mem/intune/fundamentals/unlicensed-admins

Did you also check if you have the proper permissions to use the endpoint manager?
Thanks for your guidance Rudy, my license is expired which caused this issue. Thanks again! :D
1 best response

Accepted Solutions
best response confirmed by Arun_Joseph (Copper Contributor)
Solution
Hi,
not a licensing issue ? as I am not seeying any issues here (or maybe not yet :))
Happen to have another tenant to test it with?

View solution in original post