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 Intune Configuration
Microsoft Intune Configuration
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Configuration: The process of arranging or setting up computer systems, hardware, or software.
1,713 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,314 questions
0 comments No comments
{count} votes

Accepted answer
  1. Crystal-MSFT 42,796 Reputation points Microsoft Vendor
    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