← cd ~/errors
// entra id sign-in error · conditional access and devices
AADSTS50142
What Microsoft says
Password change is required due to a Conditional Access policy.
How to fix it
Microsoft doesn't publish a specific fix for this code beyond the description above. This site groups it under conditional access and devices, based on that description, so start with the steps below.
How to investigate
- Open the failed sign-in in the Entra admin center and select the Conditional Access tab. It lists every policy that applied and which one failed.
- Check the Device info tab: whether the device is registered, compliant and managed.
- Use What If in Conditional Access with the same user, app and device platform to reproduce the decision.
- Search the sign-in logs for the request ID or correlation ID from the troubleshooting details on the error page.
Tools that help
The description is quoted from Microsoft's error code reference. The grouping and investigation steps are this site's guidance.