T The Triage ManualTechnical Guides for IT Emergencies
P2 · Microsoft 365 & Collaboration

Entra ID / Microsoft 365 Authentication Prompt Loop — WAM BrokerPlugin Corruption (Error 1001)

Users on Windows 10/11 Enterprise experience persistent authentication loops when launching Outlook, Teams, or Excel, with sign-in appearing to complete but tokens failing to cache, producing error code 1001. The root cause is corruption within the Web Account Manager (WAM) data folder for the Microsoft.AAD.BrokerPlugin app package, preventing secure caching of OAuth refresh tokens. Resolution requires inspecting the BrokerPlugin AppData folder for permission or visibility issues, then re-registering the AAD BrokerPlugin AppX package via PowerShell for the affected user profile.

Indicators

Likely causes

Diagnostic steps

  1. Navigate to C:\Users\<username>\AppData\Local\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy within the affected user's local profile directory and verify the folder exists and is visible.
    Confirms whether the WAM BrokerPlugin data folder is present in the user profile; absence or hidden state indicates corruption or deletion.
  2. Right-click the Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy folder > Properties > Security tab, or run: icacls "C:\Users\<username>\AppData\Local\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy"
    Determines whether broken permissions are preventing the WAM service from caching OAuth refresh tokens, even if the folder physically exists.
  3. Reproduce the authentication loop by launching Outlook or Teams as the affected user and note the exact error code returned (expected: 1001).
    Confirms the issue is active and captures the error code to verify it matches the known WAM BrokerPlugin failure pattern before applying the fix.
  4. In the Entra ID portal, navigate to Azure AD > Sign-in logs and filter by the affected user's UPN. Review for Conditional Access blocks, MFA failures, or token revocation events.
    Eliminates cloud-side causes (e.g., MFA policy misconfiguration, token revocation, Conditional Access) before committing to local profile remediation.
  5. Test with a second user profile on the same device, or test the affected user on a different device, to determine if the issue is profile-specific or device/deployment-wide.
    Scopes the incident — per-profile WAM corruption is resolved with the BrokerPlugin re-registration; a wider pattern may indicate a GPO, update, or AV policy causing the corruption.

Resolution path

Prevention

Tools

References

Entra IDAzure ADMicrosoft 365Windows 11Windows 10WAMWeb Account ManagerAAD BrokerPluginOAuthauthentication loopOutlookTeamsExcelerror 1001AppXtoken cachinguser profile corruptionL2L3desktop engineering