Intunes API - How to create a device identity ?

PERELLO Romain 21 Reputation points


I'm trying to create a device identity through an API call.
This method ( does not work, and the people maintaining the documentation suggest to use this one instead :

This method produce an API response, but nothing is done, and nothing has been logged inside Intunes. Enrolled state and platform are not set contrary to documentation example. What would be the correct way to use that API ?

Microsoft Intune Enrollment
Microsoft Intune Enrollment
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Enrollment: The process of requesting, receiving, and installing a certificate.
1,291 questions
0 comments No comments
{count} votes

Accepted answer
  1. Lu Dai-MSFT 28,366 Reputation points

    @PERELLO Romain Thanks for posting in our Q&A. From your description, I know that you want to add a device identify in Corporate device identifiers in intune portal via Graph API. If there is anything misunderstanding, feel free to let us know.

    For this issue, please make sure that the value of "importedDeviceIdentifier" is at least 14 numeric digits.

    Then try again and check if the device identity is added in intune portal.

    Hope it will help.

    If the response 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.

1 additional answer

Sort by: Most helpful
  1. Jason Sandys 31,186 Reputation points Microsoft Employee

    For clarity here, what's the bigger scenario? What's the goal for doing this?

    0 comments No comments