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

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

Users on Windows 10/11 Enterprise experience persistent authentication loops when launching Outlook, Teams, or Excel, with sign-in attempts failing to cache credentials and generating error code 1001. The root cause is corruption of the Web Account Manager (WAM) data stored under the Microsoft.AAD.BrokerPlugin local package folder, preventing OAuth refresh tokens from being securely cached. Remediation involves re-registering the AAD BrokerPlugin app package via PowerShell for the affected user profile.

Indicators

Likely causes

Diagnostic steps

  1. Navigate to the affected user's local profile and verify the existence and visibility of the WAM BrokerPlugin directory: %LOCALAPPDATA%\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy
    Confirms whether the BrokerPlugin package folder is present and visible. Absence or inaccessibility of this folder indicates WAM data corruption or permission loss.
  2. Inspect permissions on the BrokerPlugin package folder using icacls from an elevated prompt: icacls "%LOCALAPPDATA%\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy"
    Determines whether the affected user account has correct NTFS permissions on the WAM data folder. Incorrect permissions prevent token caching even if the folder exists.
  3. Confirm the issue manifests across multiple M365 applications (Outlook, Teams, Excel) to distinguish a WAM/profile-level problem from a single-application configuration issue.
    WAM corruption affects all applications relying on the shared token broker. Cross-application impact confirms the WAM layer is the failure point.
  4. Review the contents of the Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy package folder for signs of data corruption — look for missing, zero-byte, or inaccessible token cache files within the package's data subdirectories.
    Identifies specific corrupted WAM data artifacts preventing OAuth refresh token caching and confirms re-registration is appropriate versus a full profile rebuild.

Resolution path

Prevention

Tools

References

entra-idazure-admicrosoft-365windows-11windows-10wamauthentication-loopoauthaad-brokerpluginoutlookteamsexceltoken-cacheuser-profileerror-1001desktop-engineeringpowershell