Share via

Intunes API - How to create a device identity ?

PERELLO Romain 21 Reputation points
2021-08-31T10:53:31.95+00:00

Hi,

I'm trying to create a device identity through an API call.
This method (https://learn.microsoft.com/fr-fr/graph/api/intune-enrollment-importeddeviceidentity-create?view=graph-rest-beta) does not work, and the people maintaining the documentation suggest to use this one instead : https://learn.microsoft.com/fr-fr/graph/api/intune-enrollment-importeddeviceidentity-importdeviceidentitylist?view=graph-rest-beta

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 ?
127931-capture.png

Microsoft Security | Intune | Enrollment
0 comments No comments

Answer accepted by question author
  1. Lu Dai-MSFT 28,531 Reputation points
    2021-09-01T08:13:31.31+00:00

    @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.
    128217-image.png

    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,421 Reputation points Microsoft Employee Moderator
    2021-08-31T14:51:29.05+00:00

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

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.