Intune - Last login

Ahmed Alshatawi 235 Reputation points
2024-09-03T18:46:16.71+00:00

Hello,

We have cloud environment (no Active Directory or GPO) and we have a group of shared devices, have no primary user. Is there a way to access last seen user or last login user for shared and non shared windows devices in Intune? Thanks.

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

Accepted answer
  1. Anonymous
    2024-09-04T02:07:29.0766667+00:00

    @Ahmed Alshatawi Thanks for posting in our Q&A.

    Based on my research, I find that "usersLoggedOn" stores the last logged on user's userId 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 result when I check in Graph explorer:User's image

    And we can search this user based on this userId under Users in intune portal.

    Hope it will give you some ideas.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.