Changing EnrolledBy user field with Last Logged on User ID

Ashish Kumar Arya 41 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.
4,991 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Crystal-MSFT 48,081 Reputation points Microsoft Vendor
    2021-04-15T07:08:00.38+00:00

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

    0 comments No comments

  2. Ashish Kumar Arya 41 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.


Your answer

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