Last sign-in attribute from User Graph API is less accurate that the SignIns GraphApi

Saad Sawari 5 Reputation points
2023-05-26T17:47:00.7233333+00:00

I need to fetch list of users and their last sign in activity. I am using C# Microsoft.Graph.GraphServiceClient.Users.GetAsync call and the last last siginin activity is off some or inaccurate comparing to AuditLogs.SignIns.GetAsync(); .

My question is how often does signInActivity get refresh or how accurate is this value? is it 12 hours delay or more than that.

MS doc does not talk about say anything about data accuracy.
https://learn.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0

FYI, License is Azure premium P2.

Microsoft.Graph Nuget 5.11

Microsoft Security Microsoft Entra Microsoft Entra ID
{count} vote

1 answer

Sort by: Most helpful
  1. Mehtab Siddique (MINDTREE LIMITED) 971 Reputation points
    2023-06-15T11:57:00.0033333+00:00

    Hi @Saad Sawari,

    As mentioned in the document the timestamp represents date and time information using ISO 8601 format and is always in UTC time that might be the difference between timestamps.

    User's image

    For more information:https://learn.microsoft.com/en-us/graph/api/resources/signinactivity?view=graph-rest-1.0#properties


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


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.