Start by narrowing the pattern: one browser, one app on one PC, one user, or everybody. Then open that user's failed sign-in in the Microsoft Entra sign-in logs (Reports Reader is enough) and read the failure reason, error code and Conditional Access tab. Most loops turn out to be a stale browser session, a broken Windows sign-in plug-in on a single PC, or session settings that ask too often. If the prompts appear when nobody is trying to sign in, do not approve them and treat it as a possible account attack.
Narrow the pattern before you touch anything
'Sign-in loop' covers several different faults that happen to look alike. The fix for a cookie problem in one browser has nothing in common with the fix for a session policy that asks everyone to re-authenticate, so the first job is working out which one you have. A few questions usually settle it in minutes.
If several people report it at the same moment with no change on your side, check Service health first. In the Microsoft 365 admin centre go to Health, then Service health. The Help desk admin and Service Support admin roles can view it, and if you cannot sign in to the admin centre at all, Microsoft publishes a separate service status page. A known incident saves you an afternoon of poking at one laptop.
- Only one browser, or fine in a private window: browser session or cookies. Go to the browser section.
- Outlook, Teams or Word on one Windows PC prompts again and again while the same account works in a browser: the Windows sign-in broker on that PC. Go to the desktop apps section.
- One user, on every device and browser: the account itself, MFA registration or a Conditional Access result. Start with the sign-in log.
- Many users, prompts far too frequent but sign-in does succeed: session lifetime settings.
- Prompts or MFA requests arriving when the user is not trying to sign in: treat as a security matter and go to the final section first.
Read the sign-in log for the affected user
The Microsoft Entra sign-in logs record what the sign-in service decided, which is worth far more than guessing from the user's description. You need at least the Reports Reader role. Reading the logs changes nothing. Log history is limited and the retention period depends on your licence, so look soon after the problem is reported rather than next week.
If the Conditional Access tab in an entry is empty or unhelpful, check that your role covers policy details as well as logs before assuming nothing applied.
- 50058: the user was authenticated but did not finish signing in. Often seen when a sign-in is abandoned part-way.
- 70046: the session expired or a re-authentication check failed, which can come from a Conditional Access policy requiring re-authentication.
- 50140: the user hit the 'Keep me signed in' interrupt. This is the 'Stay signed in?' prompt being shown or abandoned.
- 500121: the user did not complete the MFA prompt, frequently because MFA registration was never finished.
- 53000, 53001, 53002, 53003, 53004 and 53009: Conditional Access outcomes such as device not compliant, not domain joined, unapproved app or blocked by policy. In a browser these appear with an AADSTS prefix, for example AADSTS53002.
- Sign in to the Microsoft Entra admin centre at entra.microsoft.com as at least a Reports Reader.
- Browse to Entra ID > Monitoring & health > Sign-in logs.
- Filter by the user's name and the time they saw the problem. Start with Status set to Failure, then clear that filter if nothing useful appears, because interrupted sign-ins are logged too.
- Open an entry and note the Correlation ID, Sign-in error code, Failure reason, Application and Resource. Read Additional Details as well, which often says what to do next.
- Open the Conditional Access tab to see which policies applied and the result. Select a policy name to see its configuration, or the ellipsis beside it for why it did or did not apply. Under Authentication Details, Session Lifetime Policies Applied shows which session settings were in play.
- Paste the error code into Microsoft's error code lookup at login.microsoftonline.com/error for a description and suggested remediation. If the entry still makes little sense, select the Launch the Sign-in diagnostic link in the Activity Details window; it analyses that event and lists recommendations.
The browser keeps returning to the sign-in page
Browser sign-in depends on cookies holding the session between the password, MFA and the app you asked for. If the cookie is stale, blocked or wiped, the browser lands back on the login page with no memory of having just signed in. Unless 'Stay signed in?' is accepted, the session cookie is non-persistent and lasts 24 hours or until the browser is closed, so a browser set to clear cookies on exit will ask every single time.
Clearing cookies is the unglamorous answer, but it works often enough to earn its place at the front of the queue.
- Open a private window (InPrivate in Edge) and sign in at myaccount.microsoft.com. If that works, the account is fine and the problem is stored browser state, an extension or a conflicting profile.
- If it also fails in a private window, try a different browser or device. Failing everywhere points at the account, MFA or a policy, so return to the sign-in log.
- If only the normal profile fails, clear cookies and cached files in that browser. In Edge, go to edge://settings/privacy, choose Choose what to clear under Clear browsing data, tick Cookies and other site data and Cached images and files, set the range to All time and select Clear now. This signs the user out of every website in that browser, so warn them first. Restart the browser and sign in again.
- Check the user has not got two conflicting accounts in one Edge profile. At edge://settings/profiles, sign out of the profile with the problem and sign in again. Do not remove a profile unless the user's favourites and passwords are synced, because removing it deletes local data not stored elsewhere.
- On a managed PC, open edge://policy and search for BrowserSignin. A value of 0 disables browser sign-in, 1 allows it and 2 forces it. If it is not what you intended, that is a policy change for whoever manages the device.
- Ask the user to open mysignins.microsoft.com. Any user can see their own recent sign-ins there, which gives you a second view of what the service saw.
Outlook, Teams or Office on Windows keeps prompting
On Windows, Microsoft 365 apps use a component called Web Account Manager (WAM) to get and renew sign-in tokens, via plug-ins installed in each user's profile. If those plug-ins are missing or damaged, apps can drop into 'Need Password' or show a blank sign-in window while the same account works fine in a browser. Microsoft's support guidance also links these faults to security software that blocks or removes the plug-ins. Because the plug-ins are per-user, another person on the same PC may be unaffected, so test as the affected user.
Do not disable WAM to make the prompts stop. Microsoft's support guidance says disabling it is not a supported fix and leaves Office in a legacy state. You will also find forum advice to delete token cache folders or edit the registry; we would not reach for either until the checks below and Microsoft support have had their turn.
The steps below start read-only and only make a change if a plug-in is actually missing.
- Ask the user to sign out of every account in the affected Office app, close the app completely and sign back in. It is cheap and sometimes enough.
- Run the Microsoft 365 Sign-in troubleshooter (part of the Microsoft Support and Recovery Assistant) on the PC. It diagnoses common sign-in faults and can apply fixes automatically, so run it with the user present. The download and scan may take a few minutes.
- Check the device's state as the affected user. Open a normal Command Prompt in the user's own session, not an elevated one, because some of the output can error when elevated. Under SSO state, AzureAdPrt: YES means the device holds a Primary Refresh Token for that user. This applies to Entra joined and hybrid joined PCs; ignore the SSO section on devices that are only Entra registered. Under Device State, DeviceAuthStatus: SUCCESS means the device is present and enabled in Entra ID. A 'device disabled or deleted' result is a device-record problem to fix in Entra, not a broker problem.
dsregcmd /status - Still in the affected user's session, check that the broker plug-in is installed. This reads only and prints nothing if the package is absent. Event Viewer under Windows Logs > Application can help as well: AppModel-State entries mentioning Microsoft.AAD.BrokerPlugin with an error code starting -2147 indicate a damaged or removed plug-in.
Get-AppxPackage Microsoft.AAD.BrokerPlugin - If step 4 returned nothing for a work or school account, Microsoft's documented repair re-registers the plug-in from the copy shipped with Windows. It needs an elevated PowerShell window and does nothing if the package is already present. The -ForceApplicationShutdown switch closes apps using the package, so ask the user to save their work first. Afterwards, run the check in step 4 again as the affected user. If it still returns nothing, stop there and escalate rather than trying variants.
if (-not (Get-AppxPackage Microsoft.AAD.BrokerPlugin)) { Add-AppxPackage -Register "$env:windir\SystemApps\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy\Appxmanifest.xml" -DisableDevelopmentMode -ForceApplicationShutdown } Get-AppxPackage Microsoft.AAD.BrokerPlugin - If prompts started soon after endpoint protection was installed or updated, ask the security software vendor to apply the exclusions Microsoft lists for the Microsoft.AAD.BrokerPlugin and Microsoft.Windows.CloudExperienceHost packages and the TokenBroker, OneAuth and IdentityCache folders. Microsoft suggests monitoring for around 48 hours after a repair to see whether the problem returns.
Everyone is prompted too often: session settings
If sign-ins succeed but people are asked far more often than they should be, look at session lifetime. By default Microsoft Entra ID uses a rolling 90-day window for sign-in frequency, and Office clients normally prompt only after a password reset or 90 days of inactivity. Anything more frequent is a setting somebody chose, or a combination nobody intended.
The usual culprits are Remember multifactor authentication set below 90 days, which shortens the interval for Office clients too, a Conditional Access Sign-in frequency policy with a short period or Every time, and a mix of these with Show option to remain signed in, which Microsoft says can produce prompts that are too frequent. The most restrictive setting wins. Microsoft also recommends setting an equal prompt frequency for Exchange Online and SharePoint Online, so people are not prompted on one and not the other.
If you have Entra ID P1 or P2, Microsoft recommends Conditional Access Sign-in frequency and Persistent browser session instead of the older settings. Persistent browser session requires All cloud apps as its target. With a Microsoft 365 Apps or Entra ID Free licence, keep Show option to remain signed in enabled, which a Global Administrator manages under Entra ID > Users > User settings (shown as Show keep user signed in). It applies to everyone, and the prompt is deliberately hidden for guests, high-risk sign-ins and shared devices. Do not weaken a policy just to silence one user; find the one that is actually responsible, then tune that.
- In the sign-in log entry, open Authentication Details and read Session Lifetime Policies Applied. This tells you which session setting was in play for that sign-in.
- Check Remember multifactor authentication. As at least an Authentication Policy Administrator, go to Entra ID > Multifactor authentication, select Additional cloud-based MFA settings under Configure, and look at Remember multifactor authentication settings on the Multifactor authentication service settings pane. Note the current value before changing it, as that is your rollback.
- As at least a Conditional Access Administrator, go to Entra ID > Conditional Access > Policies and open each policy that carries a Sign-in frequency or Persistent browser session session control. Write down its current values before editing. Policies scoped to all users and all resources deserve extra care, and Microsoft's guidance is to exclude emergency access accounts so a mistake cannot lock every administrator out.
- Use the What If tool (Entra ID > Conditional Access > Policies > What If) to simulate the user, application, device platform and client app and see which policies apply, including their session controls. Give it the application ID rather than a group name like Office 365, and remember it does not evaluate service dependencies, so Teams results will not include policies aimed at Exchange Online.
- Make the change for a pilot user or group first, then ask a pilot user to sign out and back in and check their next sign-in log entry. Revert to your written-down values if the result is worse.
When the prompts are not the user's own
If someone reports MFA requests or sign-in prompts that appear when they were not trying to sign in, do not troubleshoot it as a nuisance. The NCSC describes push notification fatigue, also called prompt bombing, where a user is bombarded with approval prompts until they approve the attacker's sign-in by mistake. The user should deny the request, not approve it 'to make it stop'.
Check the sign-in log for successful or interrupted sign-ins from locations, devices or applications the user does not recognise, and ask the user to compare with their own list at mysignins.microsoft.com. If anything looks wrong, reset the password, revoke the user's sessions and review their MFA methods. Microsoft documents a Microsoft Graph PowerShell route for revoking sessions. This is the point to involve whoever handles your security incidents; a full compromise investigation is a different job from the one in this article.
Check it worked and know when to escalate
A loop is fixed when the user signs in once, opens the app they were struggling with and is not prompted again through a browser restart and a day or two of normal work. In the sign-in log, their latest entries should show success rather than repeated failures or interrupts with the same error code.
If it is not resolved, collect the details Microsoft support will ask for: the Correlation ID or request ID, the time and date of a failing sign-in, the user, the application and resource, the error code and failure reason, whether it affects a browser or an app, the device join state from dsregcmd, and for Edge issues the output of edge://policy and the Edge version. Our experience with these cases is that a precise log entry shortens a support call considerably; that is a judgement, not a guarantee.
Technical terms explained
- Conditional Access
- Microsoft Entra rules that decide whether a sign-in is allowed, blocked or asked for extra proof such as MFA, based on who is signing in, from what device, where and to which app.
- Correlation ID
- A unique identifier on a sign-in log entry, used to find that exact sign-in again or to give Microsoft support.
- Primary Refresh Token
- A token held on an Entra joined or hybrid joined Windows device that lets a signed-in user get single sign-on to Microsoft 365 apps without being prompted repeatedly.
- prompt bombing
- An attack in which someone with a stolen password triggers repeated MFA approval requests, hoping the user approves one out of irritation or confusion.
- Sign-in frequency
- A Conditional Access session control that sets how long a user can stay signed in before being asked to authenticate again.
- Web Account Manager (WAM)
- The Windows component that Microsoft 365 apps use to obtain and renew sign-in tokens, through plug-ins installed in each user's profile.
Sources and further reading
- How to troubleshoot sign-in errors - Microsoft Entra ID (Microsoft Learn)
- Troubleshooting sign-in problems with Conditional Access (Microsoft Learn)
- How to use Microsoft Entra Sign-in diagnostics (Microsoft Learn)
- The Conditional Access What If tool (Microsoft Learn)
- Microsoft Entra multifactor authentication prompts and session lifetime (Microsoft Learn)
- Configure adaptive session lifetime policies (Microsoft Learn)
- Manage the 'Stay signed in' prompt in Microsoft Entra ID (Microsoft Learn)
- Troubleshoot Microsoft Edge sign-in problems (Microsoft Learn)
- Authentication automatically fails in Microsoft 365 services (Microsoft Learn)
- Can't sign in to Microsoft 365 desktop applications (Microsoft Learn, archived)
- Disabling ADAL or WAM to fix Microsoft 365 sign-in or activation issues not supported (Microsoft Learn, archived)
- Troubleshoot devices by using the dsregcmd command (Microsoft Learn)
- How to check Microsoft 365 service health (Microsoft Learn)
- Why MFA matters - Multi-factor authentication for your corporate online services (NCSC)