Azure Active Directory - Get Windows 10 Current Active Users

SujanChristo 1 Reputation point
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

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,707 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 20,596 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.