Changing EnrolledBy user field with Last Logged on User ID

Ashish Arya 21 Reputation points
2021-04-15T04:31:27.773+00:00

HI Team,

May I know how can we change the Enrolledby user field of an Intune device using the User logged on property which we get from Graph API.

There is a property call user id under Last logged on attribute.

My ask is to change the Enrolledby object ID in intune with the user id under last logged on attribute.

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
2,111 questions
No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Crystal-MSFT 20,061 Reputation points Microsoft Employee
    2021-04-15T07:08:00.38+00:00

    @Ashish Arya , After doing a lot of research, I only find a link describe changing Intune device Primary user to last logged on user.
    https://svdbusse.github.io/SemiAnnualChat/2020/03/21/Changing-Intune-Primary-User-To-Last-Logged-On-User.html
    Note: non-Microsoft link, just for the reference.

    I didn't find any link mentioned the method to changing the EnrolledBy. Maybe you can consider to contacting our Premier support to see if we can get more help:
    https://www.microsoft.com/en-us/msservices/premier-support

    Thanks for the understanding and have a nice day!


    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.

    No comments

  2. Ashish Arya 21 Reputation points
    2021-04-15T15:17:27.49+00:00

    @Crystal-MSFT - THanks for replying but I have already used this thing to change the primary user and have managed to do that. But now the ask is to change the Enrolledby user name.

    I have managed to get the Enrolledby username id but unable to make the change.