Changing EnrolledBy user field with Last Logged on User ID

Ashish Arya 21 Reputation points

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

    @Ashish Arya , After doing a lot of research, I only find a link describe changing Intune device Primary user to last logged on user.
    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:

    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

    @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.