Can Microsoft Entra ID provide sign-out logs for enterprise applications?
Asked by
_dem30m
I can access sign-in logs for enterprise applications in Microsoft Entra ID, but I also need sign-out data for some KPIs. Specifically, I want to estimate how long users remain signed in to a particular application. Is there a reliable way to retrieve sign-out events or calculate session duration?
Answers
Usually not reliably. A sign-out is only visible to Entra ID when the user explicitly logs out and the application sends a logout request or callback to the identity provider. Closing a browser or app, losing a session, or simply allowing a token to expire generally does not create a sign-out event.
Reply to this answer
You could enforce a sign-in frequency through a Conditional Access policy and use recurring authentication as an approximate boundary for session length. However, this still wonโt measure true usage duration, because token expiration, inactivity, browser closure, and application-specific sessions can all behave differently.
Reply to this answer
Check whether the application has a logout URL configured. Itโs optional, and many applications donโt populate it, so Entra may never receive a notification when the user signs out. If the application records its own session events, its logs are likely the best source for actual sign-out times.
Reply to this answer
Add your answer
Answers are reviewed before publication.
benthic: Rightโthis ultimately depends on the application implementing logout and logging the event. Entra sign-in logs alone canโt determine exactly when a user stopped using the app.