Find out last logon user of MDM assigned Coporate Device

Dilan Nanayakkara 1,111 Reputation points
2021-03-29T09:58:25.897+00:00

Hi All,

I want to change my current primary owner of the MDM assigned device to last logon user. In my case we have Intune administrator as a primary user for all the MDM devices and first I want to find out last logon user of each device and then change the primary user to last logon user.

so I would expect the help to achieve the below task.

1) Find out last logon user name of each MDM corporate device.

Thanks,
Dilan

Microsoft Security | Intune | Configuration
Microsoft Security | Intune | Other
0 comments No comments
{count} votes

Accepted answer
  1. Crystal-MSFT 53,991 Reputation points Microsoft External Staff
    2021-03-30T02:12:09.353+00:00

    @Dilan Nanayakkara , Research and find usersLoggedOn stores the last logged on user object id of a device. We can see more details in the following link:
    https://learn.microsoft.com/en-us/graph/api/resources/intune-devices-windowsmanageddevice?view=graph-rest-beta
    https://learn.microsoft.com/en-us/graph/api/intune-devices-windowsmanageddevice-get?view=graph-rest-beta

    Here is the one device result when I check in Graph explorer:
    82527-image.png

    Research more and find a link describe bulk change all Intune device Primary Users to last logged on user. maybe it can be helpful to you.
    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.

    Hope it can 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 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.