Extract the ICCID from Endpoint Manager (Intune)

Joerg Hochwald 1 Reputation point
2021-02-28T03:19:03.537+00:00

In my use case, I want to get the ICCID (and if possible the phone number) from Endpoint Manager. That works fine if the SIM is a real SIM card (physical)!
It returns NULL if device has an eSIM!

My Call looks. like this:
https://graph.microsoft.com/beta/deviceManagement/managedDevices/\<ID>?$select=iccid,phoneNumber

This is the native Graph Explorer call, but I have to use it within a Java application, like a ton of other calls.

This is what I get back from Endpoint Manager:
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#deviceManagement/managedDevices(iccid,phoneNumber)/$entity",
"iccid": null,
"phoneNumber": null
}

I also tried PowerShell (native and with the matching modules), but the the same result, the fields are empty (null).

We raised a support request, that was closed:

Your support request uses your subscription's complimentary support which doesn't cover developer issues

In my opinion, this is not a plain developer issue (the ICCID is not filled in the portal anyway), but the Microsoft 365 customer support pointed in this direction here.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,716 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,406 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Philippe LIZON 1 Reputation point
    2021-07-05T11:30:44.523+00:00

    Hi, for now ICCID is not empty when an esim is used, but the ICCID is not the good one, the last digits are wrong.

    0 comments No comments