Microsoft 365Deep dive

Microsoft Teams sign-in error codes: a quick reference for admins

Look up Teams sign-in status codes such as 0xCAA20003, 0xCAA20004 and 0xCAA82EE2, plus the Entra ID codes behind Teams sign-in failures: meaning, usual cause and first check.

When Teams can't sign a user in, it shows a status code in the bottom-left corner of the sign-in window. Those 0xCAA… codes describe what the device saw (a timeout, a missing proxy, a clock problem), while Microsoft Entra ID records the reason it refused, as an AADSTS code, in the sign-in log. This quick reference covers both, with the usual cause and the first thing to check.

Codes in this quick reference

  • 0xCAA82EE2: The request has timed outTeams sign-in screen
  • 0xCAA82EE7: The server name couldn't be resolvedTeams sign-in screen
  • 0xCAA70004: The server or proxy wasn't foundTeams sign-in screen
  • 0xCAA70007: The download has failed because the connection was interruptedTeams sign-in screen
  • 0xCAA20003: You ran into an authorization problem (device date and time)Teams sign-in screen
  • 0xCAA20004: Your request needs to be approved by a resource owner or authorization serverTeams sign-in screen
  • 0xCAA90018: You're not using the right credentialsTeams sign-in screen
  • No code: You'll need to re-enter your PIN using a smart cardTeams sign-in screen

+ 11 more codes in the tables below.

How this guide is organized: How to read these codes → Network and connectivity codes → Authorization, credential and policy codes → Device and client issues → AADSTS codes behind Teams sign-in failures → Triage in three questions → Patterns that point to the cause → How to verify a fixFlow diagram of the article's sections in reading order: 1. How to read these codes. 2. Network and connectivity codes. 3. Authorization, credential and policy codes. 4. Device and client issues. 5. AADSTS codes behind Teams sign-in failures. 6. Triage in three questions. 7. Patterns that point to the cause. 8. How to verify a fix. Toolbox: 0xCAA82EE2, 0xCAA82EE7, AADSTS50020, 0xCAA…, 0xCAA7.1How to read thesecodes2Network andconnectivity codes3Authorization,credential and polic…4Device and clientissues5AADSTS codesbehind Teams sign-i…6Triage in threequestions7Patterns that point tothe cause8How to verify a fixTOOLBOX0xCAA82EE20xCAA82EE7AADSTS500200xCAA…0xCAA7How this guide is organized: How to read these codes → Network and connectivity codes → Authorization, credential and policy codes → Device and client issues → AADSTS codes behind Teams sign-in failures → Triage in three questions → Patterns that point to the cause → How to verify a fixFlow diagram of the article's sections in reading order: 1. How to read these codes. 2. Network and connectivity codes. 3. Authorization, credential and policy codes. 4. Device and client issues. 5. AADSTS codes behind Teams sign-in failures. 6. Triage in three questions. 7. Patterns that point to the cause. 8. How to verify a fix. Toolbox: 0xCAA82EE2, 0xCAA82EE7, AADSTS50020, 0xCAA…, 0xCAA7.1How to read these codes2Network and connectivity codes3Authorization, credential and policy codes4Device and client issues5AADSTS codes behind Teams sign-in failures6Triage in three questions7Patterns that point to the cause8How to verify a fixTOOLBOX0xCAA82EE20xCAA82EE7AADSTS500200xCAA…0xCAA7
At a glance: how this guide is organized · 8 sections · 5 key settings and tools

How to read these codes#

  • On the device. Ask the user for the status code and the time it happened. Among the codes Microsoft documents, those starting 0xCAA7 and 0xCAA82E concern the network path, while 0xCAA2 and 0xCAA9 codes concern authorization or credentials. If Outlook and other Office apps fail as well, the problem usually sits in the sign-in components the apps share on the device, not in Teams.
  • In Microsoft Entra ID. Open Entra ID › Monitoring & health › Sign-in logs, filter on the user and the Microsoft Teams application, and read the failure reason and the Conditional Access tab. No entry at all usually means the request never reached Entra ID, so look at the network.
  • Microsoft's diagnostics. In the Microsoft 365 admin center, run the Teams Sign-in diagnostic and enter the affected user. The Teams Sign in test in the Microsoft Remote Connectivity Analyzer checks the same account from outside your network. Neither is available in every cloud (the diagnostic isn't offered in Microsoft 365 Government or 21Vianet, and the analyzer doesn't support GCC or GCC High).
PowerShell
Connect-MgGraph -Scopes "AuditLog.Read.All","Directory.Read.All"
Get-MgAuditLogSignIn -Filter "appDisplayName eq 'Microsoft Teams' and userPrincipalName eq 'user@contoso.com'" -Top 20 |
    Select-Object CreatedDateTime, ClientAppUsed, IPAddress,
        @{n='Code';e={$_.Status.ErrorCode}}, @{n='Reason';e={$_.Status.FailureReason}}

Network and connectivity codes#

CodeMeaningUsual causeFirst check
0xCAA82EE2"The request has timed out."No working route to Microsoft 365, or a firewall or other app blocking itInternet access, then the Microsoft 365 URLs and IP ranges on the firewall and proxy; Microsoft also points to its network assessment tool
0xCAA82EE7"The server name couldn't be resolved."DNS or connectivity, or a firewall ruleName resolution of Microsoft 365 endpoints from the device, then the same firewall checks
0xCAA70004"The server or proxy wasn't found."A misconfigured proxy, or a traffic inspector such as Fiddler running without HTTPS decryption set upProxy settings; stop the tool and relaunch Teams. If other Office apps fail too, see Microsoft's article on sign-in connection issues after the Office 2016 build 16.0.7967 update
0xCAA70007"The download has failed because the connection was interrupted."Unstable connection, or another app or firewall cutting itConnection stability and firewall; same Office article if other apps fail

Authorization, credential and policy codes#

CodeMeaningUsual causeFirst check
0xCAA20003"You ran into an authorization problem."Wrong date or time on the device, so secure (https) connections failSet the time automatically and confirm the time zone
0xCAA20004"Your request needs to be approved by a resource owner or authorization server."Conditional AccessThe Teams sign-in log entry: which policy applied and which grant failed. Guide
0xCAA90018"You're not using the right credentials."The Windows credentials differ from the user's Microsoft 365 credentialsSign in with the correct work account; compare the Windows sign-in with the user's UPN
No code"You'll need to re-enter your PIN using a smart card."Smart card removed, or its certificate is corruptReinsert the card; reissue the certificate if it persists

Device and client issues#

CodeMeaningUsual causeFirst check
80090016"Your computer's Trusted Platform Module has malfunctioned."Reported by admins: the device's stored sign-in keys no longer match, for example after a TPM or motherboard change or a damaged token cacheAdmins report success with disconnecting and reconnecting the work account under Settings › Accounts › Access work or school. Don't clear the TPM on a work PC unless IT says so: Microsoft warns that it deletes TPM-protected keys such as a sign-in PIN. Guide
No codeThe Teams web client keeps returning to sign-inBrowser settings for the user's preferred browserMicrosoft's "Teams is stuck in a login loop" article for that browser; test in another browser

AADSTS codes behind Teams sign-in failures#

These come from Microsoft Entra ID and are covered in depth in the AADSTS error code quick reference; here is how they show up in Teams.

CodeMeaningUsual cause in TeamsFirst check
AADSTS53003 BlockedByConditionalAccessA policy doesn't allow the tokenA block for a location, platform or client app hits TeamsConditional Access tab, then What If. Guide
AADSTS53000 DeviceNotCompliantA compliant device is requiredTeams opened on an unenrolled or noncompliant deviceDevice compliance in Intune. Guide
AADSTS50076 UserStrongAuthClientAuthNRequiredMFA is requiredPolicy or a new location; often an interrupt before successWhether a later attempt succeeded. Guide
AADSTS50079 UserStrongAuthEnrollmentRequiredMFA registration is requiredFirst Teams sign-in after MFA enforcementRegistration settings; a Temporary Access Pass. Guide
AADSTS70043 BadTokenDueToSignInFrequencyRefresh token expired under sign-in frequencyTeams asks the user to sign in again on scheduleExpected behavior; review the policy. Guide
AADSTS50020 UserUnauthorizedThe account isn't in the tenant being accessedA guest who was never invited, was removed, or picked the wrong organizationThe guest user object and its redemption state. Guide
AADSTS90072External account isn't in the tenant, so MFA can't be satisfiedA guest signing in with an identity that doesn't match the invitationWhich account the guest used. Guide
AADSTS500213 NotAllowedByInboundPolicyTenantThe resource tenant blocks this userCross-tenant access settings for guests or shared channelsInbound settings for that organization. Guide
AADSTS500014The resource's service principal is disabledA lapsed subscription or a disabled app; admins have reported it for a Teams resource together with client code CAA2000BEnterprise applications: find the disabled Microsoft app and its Enabled for users to sign-in? setting. Guide

Triage in three questions#

Placing a Teams sign-in failure in three questionsDoes Teams on the web work for the same user? if Yes: Do other Microsoft 365 apps fail on the same device? if Yes: Check the device's shared sign-in state (Credentials, device registration and TPM, rather than Teams); if No: Focus on the device, network and desktop app (Check the client is current; a clean reinstall is the last resort); if No: Is there a failed entry in the sign-in log? if Yes: Read the AADSTS code and Conditional Access tab (They tell you what Entra ID refused); if No: Check DNS, proxy and firewall (The request never reached Entra ID)Does Teams on the web workfor the same user?Do other Microsoft 365 appsfail on the same device?FIXCheck the device'sshared sign-in stateCredentials, deviceregistration and TPM, ratherthan TeamsYesFIXFocus on the device,network and desktopappCheck the client is current;a clean reinstall is the lastresortNoYesIs there a failed entry in thesign-in log?FIXRead the AADSTS codeand Conditional AccesstabThey tell you what Entra IDrefusedYesFIXCheck DNS, proxy andfirewallThe request never reachedEntra IDNoNoPlacing a Teams sign-in failure in three questionsDoes Teams on the web work for the same user? if Yes: Do other Microsoft 365 apps fail on the same device? if Yes: Check the device's shared sign-in state (Credentials, device registration and TPM, rather than Teams); if No: Focus on the device, network and desktop app (Check the client is current; a clean reinstall is the last resort); if No: Is there a failed entry in the sign-in log? if Yes: Read the AADSTS code and Conditional Access tab (They tell you what Entra ID refused); if No: Check DNS, proxy and firewall (The request never reached Entra ID)Does Teams on the web work for the sameuser?YesDo other Microsoft 365 apps fail on thesame device?YesFIXCheck the device's shared sign-in stateCredentials, device registration and TPM, ratherthan TeamsNoFIXFocus on the device, network anddesktop appCheck the client is current; a clean reinstall is thelast resortNoIs there a failed entry in the sign-in log?YesFIXRead the AADSTS code and ConditionalAccess tabThey tell you what Entra ID refusedNoFIXCheck DNS, proxy and firewallThe request never reached Entra ID
Figure 1 · Decision tree Placing a Teams sign-in failure in three questions. Use the web client and the other Microsoft 365 apps to place the fault, then let the sign-in log tell you what Entra ID refused.
  1. Does Teams on the web work for the same user? If yes, the account, license and policies are probably fine; focus on the device, its network path and the desktop app.
  2. Do other Microsoft 365 apps fail on the same device? If yes, look at the device's shared sign-in state (credentials, device registration, TPM) rather than Teams.
  3. Is there a failed entry in the sign-in log? If yes, its AADSTS code and Conditional Access results tell you what Entra ID refused. If not, the request never arrived: check DNS, proxy and firewall.

Before escalating, check that the client is current (Settings and more › Check for updates). Microsoft's last resort is a clean reinstall of Teams, including removing the old Teams folder from the user's profile. If you open a support request, include the status code from the sign-in screen and the Teams debug logs.

Patterns that point to the cause#

  • Everyone at one site sees 0xCAA82EE2 or 0xCAA82EE7 at the same time: suspect that site's proxy, firewall or DNS, not the users.
  • One user, every Microsoft 365 app, after a hardware repair or a profile change: suspect the device's sign-in state (80090016 is typical) and reconnect the work account before going anywhere near the TPM.
  • Only guests or partner users: check the guest objects and cross-tenant access settings (AADSTS50020, AADSTS90072, AADSTS500213).
  • Right after a Conditional Access change: compare the failed sign-in's Conditional Access tab with the change, and use report-only mode to test the next one.
  • Nobody in the tenant can sign in: check Service health in the Microsoft 365 admin center first.

How to verify a fix#

  • The user signs in to the Teams desktop app without a status code, and chat and presence load.
  • The sign-in log shows a successful Microsoft Teams sign-in from the same device and network, with the expected Conditional Access results.
  • The Teams Sign-in diagnostic reports no issues for the user.
  • For network codes, test again from the user's real location, VPN state and proxy, not from an admin workstation.

References#

Written and checked against current Microsoft Learn documentation. Test changes with a pilot group before rolling them out to everyone, and if an admin center path has moved since, search for the setting name instead.

Spotted a mistake, or did this fix work differently for you? Email me or message me on LinkedIn — corrections are credited in the article.

Written by

Omer Eltayeb

M365 Subject Matter Expert, former Microsoft Cloud Solutions Architect, Microsoft Certified Trainer and Microsoft Innovative Educator Expert (2024–26) and Microsoft Elevate Educator Expert (2026–27). I share practical, step-by-step guides, study plans, scripts and toolkits for Microsoft Intune, Configuration Manager, Microsoft Entra ID, Microsoft Defender, Exchange and Microsoft 365 with the community.

Microsoft Certified Trainer (MCT) 2026Microsoft Innovative Educator Expert 2025–2026Microsoft Elevate Educator Expert 2026–2027ISC2 Certified Information Systems Security Professional (CISSP)Microsoft 365 Certified: Enterprise Administrator Expert (MS-102)