question

deeku avatar image
0 Votes"
deeku asked eepyaich edited

Is change notification feature (Graph) is available for SignIn logs?

We want to get details of user sign in details from AAD using graph API. Currently we are using below API to fetch all details manually


      https://graph.microsoft.com/beta/auditLogs/signIns


But it's not giving all the details but we want only delta of changed details. Can we use "change notification" feature for this?

Like, if any user logs in, we shall get those sign in details!!

microsoft-graph-applicationsazure-ad-microsoft-account
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

eepyaich avatar image
1 Vote"
eepyaich answered eepyaich edited

Hi @kudlatiger

Thank you for asking this question on the Microsoft Q&A platform.

I believe the main part of your question is asking whether it is possible to subscribe to change notifications on the "Sign-in" resource in the Microsoft Graph API.

Unfortunately, the sign-in resources do not support either delta queries (where you could updates since a previous query - see https://docs.microsoft.com/en-us/graph/delta-query-overview#supported-resources for the list supported resources) or change notifications (see https://docs.microsoft.com/en-us/graph/webhooks#supported-resources for the list of resources supported by this feature).

In the absence of change notifications or delta queries, I think your best option would be to periodically list sign-ins, using filters to only pull in new data since the last query. For example:

 https://graph.microsoft.com/v1.0/auditLogs/signIns?&$filter=createdDateTime ge 2022-05-23T10:12:01Z

Whilst this is not as convenient as the subscription model, it should allow you to keep track of sign-ins.

You also mentioned that "it's not giving all the details" - what else were you hoping to see from the API?


Kind regards,
Ed Harrison



Accept Answer and Upvote, if any of the above helped, this thread can help others in the community looking for remediation for similar issues.
NOTE: To answer you as quickly as possible, please mention me in your reply.






5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.