Azure Active Directory - Get Windows 10 Current Active Users

SujanChristo 6 Reputation points
2020-04-29T13:07:35.69+00:00

Hi Team,

We want to get the currently active Windows 10 Users using Graph SDK who are Azure AD Domain Joined to a Tenant.

What is the best API which can be used for it?

Please note that we are aware of Reports and AuditLogs:
getOffice365ActiveUserDetail
https://graph.microsoft.com/v1.0/auditLogs/signIns

We got the result for both of the above ones.

Could you please help me on this?

Thanks in advance,

WIth Warm Regards,
Sujan

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,428 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 33,801 Reputation points Microsoft Employee
    2020-05-12T22:55:26.253+00:00

    Hi Sujan,

    Please try passing the filter parameter into your request. Filter supports the property accountEnabled of the User entity, so you can use this property to find active user.

    Here's the request you have to use:

    GET https://graph.microsoft.com/v1.0/users?$filter=accountEnabled+eq+true

    To get the other user information you'll need to retrieve the user details.