errorCode / ResultTypeUsually benign
50140: Keep me signed in interrupt
The 'Stay signed in?' prompt. Routine.
Find it
union SigninLogs, AADNonInteractiveUserSignInLogs
| where ResultType == "50140"
| summarize Attempts = count(), Users = dcount(UserPrincipalName) by IPAddress, AppDisplayName
| order by Users descAbout errorCode
Every Entra ID sign-in records a result code: 0 for success, otherwise an AADSTS error number. The code tells you whether the password was right, whether MFA stopped the attacker, and whether a policy blocked them.
Questions
- What does errorCode 50140 mean?
- Keep me signed in interrupt. The 'Stay signed in?' prompt. Routine.
- Is errorCode 50140 a sign of an attack?
- Usually not. It is normal activity on its own. Check it against the account, host and time before you move on.
- Where is errorCode 50140 recorded?
- In the status.errorCode field of Entra ID sign-in logs.
- How do I search for errorCode 50140?
- The queries on this page filter for it in PowerShell, Microsoft Sentinel and the source's own tools. Paste a full record into the WETNav decoder to see every other field explained too.
Appears in
Other Entra ID sign-in error code (AADSTS) values
- 0Success
- 50126Invalid username or password
- 50053Account locked or sign-in blocked
- 50055Password expired
- 50057Account disabled
- 50074Strong authentication required
- 50076MFA required (location or policy)
- 50079MFA registration required
- 50072MFA enrollment required
- 50125Password reset or registration interrupt
- 50133Session invalid
- 50158External security challenge not satisfied
- 50173Fresh token needed
- 50034User does not exist
Decode a whole event
Paste the event and every field is explained, in your browser.