How to Fix Microsoft Teams Error 50058
Diagnostic Procedures
- 1 Identify the exact meaning of the error code
- 2 Clear cache or credentials related to the software
- 3 Check service server status for outages
- 4 Perform a repair or reset on the desktop client
- 5 Re-authenticate the connection to sync files
How to Fix Microsoft Teams Error 50058
If you are encountering Microsoft Teams Error Code 50058, you are experiencing a silent sign-in failure. The application is trying to log you in automatically using cached session tokens, but Microsoft Entra ID (formerly Azure Active Directory) cannot find an active authentication session or the session has expired.
This guide provides the necessary steps to resolve this error, clear stale tokens, and re-authenticate your connection.
1. Identify the Exact Meaning of the Error Code
Error Code 50058 maps directly to the Microsoft Entra ID error AADSTS50058 (UserInformationNotProvided).
This error triggers when:
- Silent Authentication Fails: Teams attempts to renew your login token in the background (Single Sign-On / SSO) without prompting you for credentials, but the underlying session is expired, revoked, or invalid.
- Password/MFA Changes: The user’s password or Multi-Factor Authentication (MFA) requirements were changed, rendering the existing silent login tokens invalid.
- Tenant Policy Restrictions: Conditional access rules require a fresh login challenge, but the app fails to show the prompt.
2. Clear Cache or Credentials Related to the Software
Purging local caches and removing stored credentials forces Microsoft Teams to prompt you for a fresh login.
A. Windows Steps (PowerShell)
- Close Teams completely. Run the following command in PowerShell to terminate all Microsoft Teams processes:
Stop-Process -Name "ms-teams" -Force -ErrorAction SilentlyContinue Stop-Process -Name "Teams" -Force -ErrorAction SilentlyContinue - Delete the client cache files:
# For New Teams (v2) Remove-Item -Path "$env:LOCALAPPDATA\Packages\MSTeams_8wekyb3d8bbwe\*" -Recurse -Force -ErrorAction SilentlyContinue # For Classic Teams (v1) Remove-Item -Path "$env:APPDATA\Microsoft\Teams\*" -Recurse -Force -ErrorAction SilentlyContinue - Open the Credential Manager (via Start Menu), select Windows Credentials, and delete all entries containing
MicrosoftOffice16,MicrosoftTeams, orvirtualapp/didlogical.
B. macOS Steps (Terminal)
- Force quit Teams:
pkill -9 "Microsoft Teams" pkill -9 "Teams" - Remove the cache directories:
# For New Teams (v2) rm -rf ~/Library/Group\ Containers/UBF8T346G9.com.microsoft.teams rm -rf ~/Library/Containers/com.microsoft.teams2 # For Classic Teams (v1) rm -rf ~/Library/Application\ Support/Microsoft/Teams - Open Keychain Access, search for
Microsoft TeamsandMicrosoft Office, and delete all matching secure keys (e.g.,Microsoft Teams Identities Cache).
3. Check Service Server Status for Outages
Authentication loops can sometimes be triggered by cloud service degradation on Microsoft’s end.
- Navigate to the Microsoft 365 Service Status Page or ask your system administrator to check the Microsoft 365 Admin Center under Health > Service health.
- If Entra ID or Microsoft Teams is experiencing authentication issues, wait for Microsoft to resolve the outage.
4. Perform a Repair or Reset on the Desktop Client
If local application configuration files are corrupted, you can repair or reset the application.
A. Windows Apps Reset
- Press
Windows Key + ito open Settings. - Click Apps → Installed apps.
- Search for Microsoft Teams.
- Click the three dots (…) next to it and select Advanced options.
- Scroll down and click Repair. If the issue persists, click Reset (this clears app data).
Alternatively, you can run this PowerShell command to reset Teams V2:
Get-AppxPackage -Name "MSTeams" -AllUsers | Reset-AppxPackage
B. macOS Clean Reset
On macOS, removing the plist configuration files resets the client settings:
defaults delete com.microsoft.teams2
rm -f ~/Library/Preferences/com.microsoft.teams2.plist
5. Re-authenticate the Connection to Sync Files
Re-binding your corporate account to the operating system ensures that Single Sign-On (SSO) works correctly.
A. On Windows
- Open Settings (
Win + I). - Go to Accounts → Access work or school.
- Locate your account and click Disconnect.
- Restart your system.
- Return to Access work or school, click Connect, and log in with your credentials to establish a fresh relationship with Entra ID.
B. On macOS
- Open Microsoft Teams.
- If you are stuck in a loop, click your profile picture in the top-right corner (or the menu bar) and select Sign Out.
- Re-enter your work or school email address and complete the login verification (including MFA).
6. Summary Quick Reference Checklist
| Action | Command / Path | Expected Outcome |
|---|---|---|
| Kill Teams Process | Stop-Process -Name "ms-teams" (Win) / pkill (Mac) | Frees locked files. |
| Clear Windows Cache | %localappdata%\Packages\MSTeams_8wekyb3d8bbwe | Removes stale session cookies. |
| Clear Mac Cache | ~/Library/Containers/com.microsoft.teams2 | Resolves persistent cached tokens. |
| Reset Accounts Link | Windows Settings -> Access work or school | Restores Device Join identity state. |
| Purge Keyring/Credentials | Delete Microsoft Teams keys in Windows/Mac store | Forces app to prompt for credentials. |