Investigate a Sign-in with the Sign-in Logs
When someone says “I can’t sign in” or a policy didn’t do what you expected, the Microsoft Entra sign-in logs tell you who signed in, how, and to what (sign-in activity details (opens in a new tab)). This is a walkthrough for one sign-in, from finding the right entry to what to send Microsoft.
Before you start
- Role: at least Reports Reader. Logs are at Entra ID > Monitoring & health > Sign-in logs (Access the sign-in logs (opens in a new tab)).
- Retention: sign-ins are kept 7 days on Microsoft Entra ID Free and 30 days on P1 or P2. Route them to Azure Monitor or storage to keep them longer (Data retention (opens in a new tab); see License requirements).
- Ask the user for the time it happened, the app, and the device. It saves a lot of scrolling.
Step by step
- Pick the right tab. There are four log types: interactive user, non-interactive user, service principal, and managed identity (Types of sign-in logs (opens in a new tab)). Non-interactive sign-ins are done by a client app or OS on the user’s behalf, such as token refreshes, without the user entering anything (Non-interactive sign-ins (opens in a new tab)). Background failures often only show up there.
- Filter. Narrow by user, application, status and date, and add the columns you need; there are over 30 to choose from (Customize and filter logs (opens in a new tab)).
- Read Basic info. It shows the error code and failure reason, plus the correlation ID and request ID. The Sign-in Diagnostic can be launched from here (Basic info (opens in a new tab)). Paste the code into the Error Decoder.
- Check Location and Device info. They show the IP address and location, the browser and OS, and whether the device is compliant, managed, or hybrid joined (Location and Device (opens in a new tab)). A device that isn’t showing as compliant here explains most “require compliant device” blocks.
- Read Authentication details. It lists each authentication attempt, the policies applied (Conditional Access or security defaults), and whether each step succeeded and why (Authentication details (opens in a new tab)).
- Read the Conditional Access tab. Success means a policy applied and was satisfied. Failure means it applied and the sign-in failed. Not Applied means the sign-in didn’t match the policy’s conditions (Conditional Access results (opens in a new tab)).
- Check Report-only. This tab shows how report-only policies would have handled the sign-in. Use it before you switch a policy on (Report-only (opens in a new tab)).
- Export if you need more. Download as CSV or JSON. Timestamps are UTC, and each file holds up to 100,000 sign-in records (Download logs (opens in a new tab)). For scripted exports, see Export sign-in logs; downloading through Microsoft Graph needs a premium license (Prerequisites (opens in a new tab)).
Gotchas
- Windows Hello for Business sign-ins show Conditional Access as Not Applied, because Conditional Access protects access to cloud resources, not the Windows sign-in (Conditional Access results (opens in a new tab)).
- Some “bootstrap” sign-ins, such as device registration and device compliance, are exempt from Conditional Access to avoid a chicken-and-egg problem (Learn (opens in a new tab)).
- IP-to-location is best effort. Mobile carriers and VPNs often hand out addresses far from the user (Sign-in details and considerations (opens in a new tab)).
- The correlation ID comes from values the client sends, so Microsoft can’t guarantee it (Unique identifiers (opens in a new tab)).
- The legacy sign-in logs view only shows interactive sign-ins (Types of sign-in logs (opens in a new tab)).
Before you open a ticket
Note the request ID, correlation ID, time (UTC) and error code from Basic info, and try the Sign-in Diagnostic (Sign-in Diagnostic (opens in a new tab)). Then see When to call Microsoft.
Related on EntraReady: Common sign-in error codes, AADSTS53003 (blocked by Conditional Access), AADSTS50126 (invalid username or password), and the Conditional Access testing checklist.
Sources (Microsoft Learn): What are Microsoft Entra sign-in logs? (opens in a new tab), Sign-in log activity details (opens in a new tab), Non-interactive user sign-ins (opens in a new tab), Microsoft Entra data retention (opens in a new tab), Download logs (opens in a new tab), Sign-in Diagnostic (opens in a new tab).
← All GuidesIs this still accurate?
Spotted something outdated or wrong on this page? Tell us in a sentence. The page address is sent with it.