Launching the modern Microsoft Teams desktop client in Windows 11 often halts abruptly on a grey authentication modal: ‘We ran into a problem. Error Code: CAA5004B. We couldn’t sign you in. Please try again later.’ Clicking ‘Sign out’ or ‘Retry’ simply loops back to the same failure code. Error CAA5004B indicates an Azure Active Directory (Azure AD) Web Account Manager (WAM) broker negotiation timeout or token validation mismatch. The Windows token broker failed to exchange device-bound cryptographic keys with your organization’s Microsoft 365 cloud tenant.
Why Does Teams Throw Error CAA5004B?
The authentication roadblock occurs between Windows account management and Azure AD:
- Corrupted WAM (Web Account Manager) Token Cache: The Windows token broker daemon (
TokenBroker) retaining corrupted OAuth refresh tokens inside user local AppData. - Workplace Join State Desynchronisation: The workstation’s corporate device registration (Azure AD Registered or Hybrid Joined) expiring or being purged from Intune.
- Stale Microsoft Credentials in Credential Manager: Cached generic credentials conflicting with newly enforced conditional access policies.
- TLS / Proxy Inspection Interception: Enterprise network firewalls or VPN split-tunnels intercepting WAM broker TLS handshakes to
login.microsoftonline.com.
Step 1: Reconnect Work or School Account in Windows 11
Re-authenticating your tenant profile refreshes device-level Azure AD certificates.
- Press Win + I to open Settings.
- Navigate to Accounts > Access work or school.
- Click your corporate Microsoft 365 account to expand options.
- Click Disconnect and confirm. (If Disconnect is greyed out because your PC is domain joined, proceed to Step 2).
- Restart your computer.
- Return to Settings > Accounts > Access work or school, click Connect, and sign in with your corporate email and password.
- When prompted with ‘Allow my organization to manage my device’, ensure it is ticked, and complete setup.
Step 2: Clear Windows Token Broker Cache
Purge corrupted OAuth tokens forcing Windows to issue a fresh identity handshake.
- Right-click the Microsoft Teams system tray icon and click Quit.
- Press Win + R to open Run, paste the following path, and press Enter:
%localappdata%\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy\AC\TokenBroker\Accounts - Select all files in this folder and press Delete.
- Next, navigate to:
%localappdata%\Packages\Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy\AC\TokenBroker\Accounts - Delete all cached account token files in this directory as well.
- Restart your computer and launch Teams.
Step 3: Remove Conflicting Credentials from Credential Manager
Clear stale identity strings conflicting with modern Teams authentication.
- Press Win + S, type
Credential Manager, and open it. - Select Windows Credentials.
- Under Generic Credentials, remove all entries referencing
MicrosoftAccount:user=,msteams_, orTeams. - Relaunch Microsoft Teams and enter your login details.