signInActivity.lastNonInteractiveSignInDateTime does not update

Jason Eames 96 Reputation points
2021-09-22T08:03:13.253+00:00

I'm trying to extract from from Microsoft Graph the last time a specific account was used in azure. I'm doing this using signInActivity and while lastSignInDateTime does reflect the data I can see on the AAD portal, lastNonInteractiveSignInDateTime gives me "0001-01-01T00:00:00Z".

To be clear, this particular account shows plenty of non-interactive sign in events in the AAD web console. Is this feature not implemented yet or could there be another reason why this field is not geting updated?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,554 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,437 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jason Eames 96 Reputation points
    2021-09-23T18:43:30.72+00:00

    Yes, yours looks fine but take a look at mine, not even dates and request IDs seem to match for interactive logons... but what is most strange is the non-interactive ones. Check out the screenshots: ![134754-image.png][1] ![134791-image.png][2] ![134774-image.png][3] [1]: /api/attachments/134754-image.png?platform=QnA [2]: /api/attachments/134791-image.png?platform=QnA [3]: /api/attachments/134774-image.png?platform=QnA I've tried to capture the data exactly the same way you did. I have other similar cases with other accounts. Should I open a support ticket?


1 additional answer

Sort by: Most helpful
  1. Danstan Onyango 3,741 Reputation points Microsoft Employee
    2021-09-23T08:40:34.373+00:00

    I see consistency on my end. For the particular user below with not many sign in activity, see the last interactive and non interactive activities matching lastSignInDateTime and lastNonInteractiveSignInDateTime respectively. Please cross check and see if the issue happens for other users. It could be specific to your tenant or user so you may need to create a support request. Also note that beta APIs are not ready for production

    From Graph API signInActivity
    134519-graph-portal-last-sign-in-date.png

    On AAD Portal under interactive signInActivity
    134632-add-portal-last-sign-in-date-interactive.png

    On AAD Portal under non interactive signInActivity
    134594-add-portal-last-sign-in-date-non-interactive.png

    0 comments No comments