Troubleshoot blocked sign-ins from logs
Find why a sign-in failed: a policy match, a failed MFA challenge or a non-compliant device.
By Invicly Tech, , in Microsoft Entra & Microsoft 365 Administration. About 12 minutes to read.
In short
When someone cannot sign in, the Microsoft Entra sign-in logs usually say why. Each entry records the user, app, device, location, the error code and which Conditional Access policies applied. Reading the Basic info, Authentication details, Device info and Conditional Access tabs in order, and testing with the What If tool, lets you tell a policy block from a failed MFA challenge or a non-compliant device.
Think of it like this: The sign-in log is the security desk's visitor book: every attempt, the reason it was refused and which rule the guard followed.
Explained simply
When a user says they cannot get into Outlook or Teams, guessing wastes time. Microsoft Entra keeps a sign-in log: a record of every attempt to sign in, whether it worked, and why not. Most of the time the answer is in there.
Each log entry has tabs. Basic info shows the time, app, IP address, status and an error code. Authentication details show which method was tried, such as a password then an Authenticator push, and whether each step worked. Device info shows the computer or phone and whether it was compliant. The Conditional Access tab shows which policies applied and their result.
Error codes are the fastest clue. 50126 means the wrong password. 53003 means a Conditional Access policy blocked the sign-in. 53000 means the policy wanted a compliant device and this device was not. 500121 means the user started MFA but did not finish it.
Once you think you know the cause, check it with the What If tool. You type in the user, app, platform and location, and it tells you which policies would apply. That way you test a fix before asking the user to try again.
Press Play on a diagram to walk through it one step at a time.
- Credentials
- 50126 wrong username or password
- 50053 account locked
- 50057 account disabled
- MFA challenge
- 50074 or 50076 MFA required (interrupt)
- 500121 MFA not completed
- User denied or ignored the prompt
- Conditional Access
- 53003 blocked by a policy
- Check the Conditional Access tab
- Device
- 53000 device not compliant
- Device not registered or not recognised
- 1Gather facts
User, time, app, device, correlation ID
- 2Find the entry
Filter sign-in logs, include non-interactive
- 3Read the error code
Credentials, MFA, policy or device
- 4Open the matching tab
Authentication, Device or Conditional Access
- 5Test the fix
What If, then a real retry
- 6Record evidence
Entry IDs and the change made
In depth
Opening and filtering the sign-in logs
In the Microsoft Entra admin center go to Entra ID, Monitoring and health, Sign-in logs. You need a role such as Reports Reader, Security Reader or Global Reader. The default view is User sign-ins (interactive). Switch tabs to see non-interactive sign-ins (background token refreshes by apps), service principal sign-ins and managed identity sign-ins.
Filter by the user, a time range around the report, and Status Failure or Interrupted. If the user saw an error page, ask for the Correlation ID or Request ID shown on it and filter on that. Retention is 7 days on the free tier and 30 days with P1 or P2, so export to Log Analytics or a storage account if you need more. Logs usually appear within a few minutes but can lag.
- Roles: Reports Reader, Security Reader, Global Reader
- Filter: user, time, status, correlation ID
- Check non-interactive tab for app refresh failures
- Free: 7 days; P1 or P2: 30 days
Reading the Conditional Access tab
This tab lists every enabled and report-only policy evaluated for the sign-in. Each has a result. Success means the policy applied and its controls were satisfied. Failure means the policy applied and its controls were not met, which is how you find the blocking policy. Not applied means the assignments or conditions did not match. Report-only results appear with the Report-only prefix and never block.
Click a policy to see which assignments and conditions matched and which controls were required versus satisfied. The top-level Conditional Access field on the entry summarises: success, failure or notApplied. A failure caused by a block control shows error 53003; a failure because the device was not compliant shows 53000.
Spotting a failed MFA challenge
MFA problems usually show as a chain of entries. The first row often has status Interrupted with code 50074 or 50076: Entra asked for strong authentication. That is normal. The next row tells the real story. Success means the user completed MFA. Failure with 500121 means the challenge was not completed: the prompt timed out, the user denied it, or the number match was wrong.
Open Authentication details on that row. It lists each step, the method (for example Mobile app notification), and a result detail such as MFA denied; user declined the authentication, or MFA did not complete. A string of denied prompts the user did not start is a sign of MFA fatigue attacks with a stolen password: reset the password and revoke sessions.
- User to Entra ID: Password correct (step 1 succeeded)1Password correct (step 1 succeeded)
- Entra ID to User: Interrupt 50074: strong auth required2Interrupt 50074: strong auth required
- Entra ID to Authenticator: Send push with number match3Send push with number match
- Authenticator to Entra ID: No response or user declined4No response or user declined
- Entra ID to User: Failure 500121: MFA not completed5Failure 500121: MFA not completed
Spotting a device compliance failure
When a policy requires a compliant device, Entra checks the device's compliance state, which Microsoft Intune reports. On the failed entry, Device info shows the device ID, operating system, join type, and whether it is Compliant and Managed. If Compliant is No, or the device ID is empty, the policy fails with 53000.
An empty device ID often means the browser did not pass device identity: for example a private window, a browser without the right extension or account sign-in, or an unregistered device. If the device is known but not compliant, open it in Intune and check which compliance setting failed, such as an old OS version or BitLocker off. Fix the device and wait for it to check in again before the user retries.
- Device info: Compliant and Managed flags
- Empty device ID: browser or registration problem
- Known but non-compliant: check Intune compliance details
- Retry after the device checks in
Testing with the What If tool
Go to Entra ID, Conditional Access, Policies, What If. Choose the user, the target app, and any conditions you want to simulate: IP address, country, device platform, client app, device state and risk levels. Run it. The tool returns Policies that will apply, with their controls, and Policies that will not apply, with the reason, such as user excluded or app not included.
What If does not need a real sign-in and does not change anything, so it is safe in production. It is good for answering two questions: which policy is blocking this user, and will my proposed exclusion or change have the effect I want. It evaluates only Conditional Access, not passwords, MFA registration or Intune, so combine it with the logs.
Learn it in 5 short steps
About 30m each. Track them with a timer in your plan.
- 1Open the sign-in logs~30m
- 2Read the Conditional Access tab~30m
- 3Spot a failed MFA challenge~30m
- 4Spot a device compliance failure~30m
- 5Use the What If tool~30m
Key points
- Start from the user's report: time, app, device and error text with its correlation ID.
- Filter sign-in logs by user and time, then open the failed entry; interrupt entries are often normal steps, not the root failure.
- The Conditional Access tab shows every evaluated policy with Success, Failure, Not applied or a report-only result.
- Device info shows whether the device was registered, compliant and managed when it signed in.
- The What If tool predicts which policies apply to a made-up sign-in, so you can test a fix before the user retries.
Key terms
Tap a card to flip it. 0/5 known
Examples
Connect-MgGraph -Scopes "AuditLog.Read.All","Directory.Read.All"
$upn = "alex@contoso.com"
Get-MgAuditLogSignIn -Filter "userPrincipalName eq '$upn'" -Top 10 |
Select-Object CreatedDateTime, AppDisplayName,
@{n="Error";e={$_.Status.ErrorCode}},
@{n="Reason";e={$_.Status.FailureReason}},
ConditionalAccessStatusList a user's last ten sign-ins with error codes and the Conditional Access outcome.
Synthetic case: blocked from abroad
Priya at Contoso cannot reach SharePoint while at a conference. The synthetic log entry below shows error 53003 and a failure on CA05 Block outside allowed countries. Step 1: the Conditional Access tab confirms CA05 matched on location. Step 2: What If with Priya, SharePoint Online and country Portugal shows CA05 will apply. Step 3: with manager approval, add Priya to the CA05-Travel-Exception group, which has a seven-day expiry. Step 4: What If now lists CA05 under will not apply, reason user excluded. Evidence: next sign-in succeeds. Cleanup: remove Priya from the group on return.
{
"userPrincipalName": "priya@contoso.com",
"appDisplayName": "Office 365 SharePoint Online",
"ipAddress": "192.0.2.44",
"location": { "countryOrRegion": "PT" },
"status": { "errorCode": 53003, "failureReason": "Access has been blocked by Conditional Access policies." },
"conditionalAccessStatus": "failure",
"appliedConditionalAccessPolicies": [
{ "displayName": "CA05 Block outside allowed countries", "result": "failure" },
{ "displayName": "CA01 Require MFA for all users", "result": "success" }
]
}Synthetic case: non-compliant laptop
Leo gets You can't get there from here on Outlook web. The entry shows error 53000; Device info lists LAPTOP-LEO07, Windows, Microsoft Entra joined, Managed Yes, Compliant No. Step 1: in Intune, the device's compliance shows BitLocker required: Not compliant. Step 2: Leo turns on BitLocker. Step 3: trigger a sync from Company Portal or Intune and wait for the state to change to Compliant. Evidence: a new sign-in shows CA04 result Success. No policy change was needed, so nothing to roll back.
Connect-MgGraph -Scopes "AuditLog.Read.All"
Get-MgAuditLogSignIn -Filter "userPrincipalName eq 'leo@contoso.com' and status/errorCode eq 53000" -Top 5 |
Select-Object CreatedDateTime,
@{n="Device";e={$_.DeviceDetail.DisplayName}},
@{n="Compliant";e={$_.DeviceDetail.IsCompliant}},
@{n="Managed";e={$_.DeviceDetail.IsManaged}}Quick reference
- Sign-in logs: Entra ID, Monitoring and health, Sign-in logs
- 50126 bad password; 50053 locked; 50057 disabled
- 50074 or 50076 = MFA interrupt; 500121 = MFA not completed
- 53003 = blocked by Conditional Access; 53000 = device not compliant
- Policy result Failure on the Conditional Access tab = the policy that stopped the user
- Check non-interactive sign-ins for apps that fail in the background
- What If simulates Conditional Access only, and changes nothing
Common mistakes
- Reading only the first failed row; an MFA interrupt is often followed by the real error a few seconds later.
- Changing a policy before confirming which policy actually caused the failure.
- Forgetting non-interactive sign-ins, where background token refreshes from apps fail quietly.
Quick quiz
Pick an answer to see if you're right and why.
Practice exercises
Try each one yourself first. Use the hint if you get stuck, then compare with the solution.
- Exercise 1easy
For a test user in a lab tenant, find their last five failed sign-ins and the error codes.
- Exercise 2medium
Given three synthetic entries for one user (50074 Interrupted, 500121 Failure with result detail MFA denied, then 50126 Failure from another IP), explain what happened and what you would do.
- Exercise 3hard
A user is blocked from Teams on a phone only. Write the full diagnosis using logs, What If and Intune, and the evidence you expect at each step.
Check yourself
Answer in your head, reveal, then be honest with yourself.
Feel confident about this topic?
Frequently asked questions
- Why can I not see sign-ins older than a week?
- On the free tier logs are kept for 7 days; P1 or P2 keeps 30 days. For longer history, send logs to Log Analytics, a storage account or a SIEM through diagnostic settings.
- What is the difference between interactive and non-interactive sign-ins?
- Interactive sign-ins are ones the user typed or tapped through. Non-interactive ones are apps quietly refreshing tokens on the user's behalf. Background failures often show up only in the second list.
- Where do I find the correlation ID?
- On the error page the user sees, often under More details or Troubleshooting details. Ask for a screenshot; the ID lets you find the exact log entry.
- Can I read sign-in logs with PowerShell?
- Yes, with Get-MgAuditLogSignIn from the Microsoft Graph PowerShell SDK and the AuditLog.Read.All permission. Reading them through the API needs an Entra ID P1 or P2 licence in the tenant.