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.
Extract the ICCID from Endpoint Manager (Intune)
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.