Last Updated:
Error Code 50058 is a common issue faced by users when attempting to access Microsoft Teams or Outlook on mobile devices, such as Android and Mac.
If you’re seeing error code 50058 when trying to sign into Microsoft Teams, Outlook, or OneDrive, you’re not alone. This sign-in error — officially logged by Microsoft Entra ID as AADSTS50058 — is one of the most frustrating authentication failures in Microsoft 365, and it can block your access completely until it’s resolved.
In plain English, Microsoft error code 50058 means Microsoft tried to sign you in silently but could not find a valid user session. The session cookies, SSO token, or stored credentials were either missing, expired, or corrupted.
Outlook error code 50058 and error code 50058 on the team’s Android are particularly frequent on mobile platforms, impacting users’ ability to seamlessly connect to their workspaces or email accounts.
One of the cases is where you have left an organization.
All the related Office 365 or online accounts are deleted or purged. But the problem is that you still use that account on your home laptop. So when you try to use your Office application, you may also see this error.
When you encounter error code 50058, it signifies a failure in the authentication process—meaning the credentials provided by the user do not match or have expired.
This is a significant issue for those who rely on cloud-based applications like Outlook and Teams for communication and productivity.
In this updated 2026 guide, I’ll walk you through every cause of this error and all 7 verified fixes—for Windows, Android, Mac, and Azure AD admin scenarios.
I’ve personally tested these fixes and cross-referenced them against Microsoft’s official documentation and the latest community reports. Let’s get your access restored.
What Is Error Code 50058? (AADSTS50058 Explained)
Error code 50058 is a Microsoft Entra ID (formerly Azure Active Directory) authentication error, and the official code string is:
AADSTS50058: A silent sign-in request was sent, but no user is signed in. The cookies used to represent the user’s session were not sent in the request to Azure AD.
This error appears in Microsoft 365 apps—Teams, Outlook, OneDrive, SharePoint, Word—when the app attempts to authenticate you automatically in the background but cannot locate a valid login session.
You’ll typically see it displayed as
"Sorry, but we're having trouble signing you in."- Error code:
50058 - Request ID / Correlation ID shown below
This error is a session authentication failure, not a password issue — though expired passwords can trigger it too.
What Causes Microsoft Error Code 50058?
Understanding the root cause speeds up the solution significantly. Here are all confirmed causes:
| Cause | Description |
|---|---|
| Corrupted or expired SSO | The single sign-on token has expired or become invalid |
| Missing browser session cookies | Cookies were cleared, blocked, or never sent to Azure AD |
| Wrong User ID / UPN | Signing in with a different email than your Microsoft 365 account |
| MFA / Conditional Access policy | Policy requires MFA or compliant device; silent auth can’t satisfy it |
| Outdated Windows credentials | Stored credentials in Credential Manager are stale or corrupted |
| Corrupted Windows user profile | Local profile conflicts with your Microsoft account |
| Left an organization | Your old work account was removed but still cached on the device |
| Incognito / private browser mode | Session cookies aren’t retained between sessions |
Corrupted or Expired SSO Session
If your organization uses Single Sign-On (SSO), the token that enables automatic sign-in has a limited lifespan. When it expires, Teams or Outlook may trigger error 50058 instead of prompting for a fresh login.
Missing or Blocked Browser Session Cookies
When you access Microsoft 365 via a browser (Outlook Web, Teams Web, or Azure Portal), the app relies on session cookies to authenticate silently. If you cleared browser data, used incognito mode, or a corporate proxy stripped the cookies, AADSTS50058 appears.
Wrong User ID or UPN (User Principal Name)
Many users sign into Outlook with one email (e.g.) and Teams with a different Microsoft 365 UPN (e.g.). This mismatch directly causes error code 50058 because the session token doesn’t match the requesting identity.
MFA or Conditional Access Policy Blocking Sign-In
The situation is increasingly common in 2025–2026 as organizations enforce Microsoft Entra ID Conditional Access. If your policy requires MFA verification, a compliant device, a trusted location, or an approved client app—and the app is trying to sign in silently—it will fail with error 50058.
Outdated or Corrupted Windows Credentials
Windows stores Microsoft app credentials in the Credential Manager. If these become stale after a password change or account modification, they cause repeated sign-in failures.
Conflicted or Corrupted Windows User Profile
A corrupted Windows user profile can misidentify your account credentials, causing Microsoft apps to fail authentication. Creating a new profile often resolves the issue permanently.
Fix Error Code 50058 on Windows (Office 365 / Outlook / Teams)
Work through these fixes in order—most users resolve the issue with Fix 1 or Fix 2.
Fix 1 – Clear Windows Credential Manager
This is the fastest and most effective solution for the majority of users.
- Press Win + R, type
control, and hit Enter to open Control Panel. - Go to User Accounts → Credential Manager.
- Click the Windows Credentials tab.
- Look for any credentials containing “Microsoft,” “Microsoft Office,” “Teams,” “Outlook,” or “OneDrive.”
- Click the arrow to expand each one, then click Remove.
- Repeat for the Web Credentials tab.
- Restart your PC and sign back into the affected app.
Why this method works: Stale cached credentials prevent Microsoft apps from accepting a fresh authentication token. Removing them forces a clean re-authentication.
Fix 2 – Sign Out and Sign Back In (SSO Reset)
- Right-click the Teams or Outlook icon in the system tray.
- Select Sign out.
- Close the application completely (check Task Manager to confirm it’s not running in the background).
- Reopen the app and sign in fresh with your correct Microsoft 365 credentials.
This resets the SSO session and forces a new token to be issued—resolving the AADSTS50058 error in most glitch cases.
Fix 3 – Disconnect Work or School Account
This solution is specifically for users who have previously connected a work or school Microsoft 365 account to their Windows 11 PC.
- Go to Settings → Accounts → Access work or school.
- Locate your organization account and click Disconnect.
- Confirm the disconnection.
- Restart your PC.
- Please return to Access work or school and reconnect your account.
- Please sign in to Teams or Outlook again.
This clears any stale work account tokens and establishes a fresh authenticated session.
Fix 4 – Reset Your Microsoft Account Password
If your organization recently changed password policies or you suspect your password is expired:
- Go to account.microsoft.com or your organization’s Office 365 portal.
- Select Change password and follow the prompts.
- After resetting, sign out of all Microsoft apps.
- Sign back in with the new password on each device.
For IT admins: If you manage the account, reset it via the Microsoft 365 Admin Center under Users → Active users → Reset password.
Fix 5 – Create a New Windows User Profile
A corrupted local user profile can persistently cause error 50058. Creating a fresh profile resolves profile-level conflicts.
- Press Win + I → Accounts → Family & other users.
- Click Add account → I don’t have this person’s sign-in information.
- Select Add a user without a Microsoft account (for a local test profile).
- Log into the new profile and try signing into Teams or Outlook.
- If it works, migrate your data to the new profile.
Fix 6 – Repair or Reinstall Microsoft Office
If none of the above work, the Office installation itself may be corrupted.
Repair first (recommended):
- Go to Settings → Apps → Installed apps.
- Find Microsoft 365 / Office and click the three-dot menu.
- Select Modify → Online Repair → Follow the prompts.
Reinstall if repair fails:
- Uninstall Office from Settings → Apps.
- Download a fresh installer from microsoft.com/microsoft-365.
- Install and sign in with your Microsoft 365 credentials.
Fix Error Code 50058 on Android (Teams & Outlook)
The team’s error code 50058 on Android is very common, especially after app updates or account changes. Here’s how to fix it:
Clear App Cache and Data
- Go to Settings → Apps → Microsoft Teams (or Outlook).
- Tap Storage.
- Tap Clear Cache, then tap Clear Data.
- Reopen the app and sign in again.
Note: Clearing data will sign you out and remove local app data. You’ll need your Microsoft 365 credentials to sign back in.
Re-login to Your Microsoft Account
- Open Teams or Outlook on Android.
- Go to your profile → Sign out.
- Close and reopen the app.
- Sign in using your correct Microsoft 365 UPN (work or school email).
Make sure you’re using the exact email address tied to your Microsoft 365 license — not a personal Gmail or alternate address.
Update or Reinstall the Teams / Outlook App
- Open the Google Play Store.
- Search for Microsoft Teams or Microsoft Outlook.
- If an update is available, install it.
- If the error persists after updating, uninstall and reinstall the app.
Outlook Error Code 50058 Exchange – Specific Fix
Outlook error code 50058 Exchange appears when Outlook on desktop or Mac repeatedly prompts for authentication against an Exchange or Microsoft 365 account. Here’s the targeted fix:
On Windows (Outlook Desktop):
- Open Outlook → File → Account Settings → Account Settings.
- Select your Exchange account → Change.
- Verify your User Principal Name (UPN) matches your Microsoft 365 sign-in email exactly.
- Click More Settings → Advanced tab.
- Under Microsoft OneDrive, click Repair if shown.
- Click OK and test.
On Mac (Outlook):
- Open Outlook → Tools → Accounts.
- Remove your existing Exchange/Office 365 account.
- Re-add it using your UPN and current password.
- If repeated prompts return, go to Help → Check for Updates and apply the latest Outlook for Mac update.
Error Code 50058 in Microsoft Entra ID / Azure AD (Admin Fix)
For IT administrators, error code 50058 at the Azure AD / Microsoft Entra ID level requires a different approach. This typically occurs when an application attempts silent token acquisition without a prior interactive sign-in.
Check Conditional Access Policies
- Sign in to the Microsoft Entra admin center at entra.microsoft.com.
- Go to Protection → Conditional Access → Policies.
- Review any policy that requires MFA, compliant devices, or trusted locations.
- If a policy is too restrictive for legitimate app sign-ins, adjust the exclusions or create a named location for trusted IPs.
2026 Update: Microsoft began enforcing MFA for all Microsoft 365 administrator accounts in October 2025 as part of their Secure Future Initiative. If your organization delayed this enforcement, users may now encounter error 50058 more frequently as a result.
Fix Silent Sign-In and Browser Cookie Issues
For users hitting error 50058 in a web browser:
- Open your browser settings and clear all Microsoft-related cookies (search
microsoft.comin cookie manager). - Disable all browser extensions temporarily, especially ad blockers and privacy extensions that block third-party cookies.
- Try signing in via InPrivate/Incognito mode first to rule out extension conflicts, then sign in normally.
- If using a corporate proxy or VPN, confirm it is not stripping authentication cookies sent to it.
Error Code 50057 vs. 50058: What’s the Difference?
Users sometimes confuse these two similar Azure AD error codes:
| Error Code | Official Description | Common Cause |
|---|---|---|
| 50058 | A silent sign-in request sent but no user is signed in | Missing/expired session cookies, SSO failure |
| 50057 | The user account is disabled | The Azure AD account has been disabled by an admin |
The 50057 error code “Azure” specifically means the user account itself is disabled in Azure Active Directory—it’s an account status issue, not a session issue. If you’re seeing 50057, contact your IT administrator to re-enable the account in the Microsoft Entra admin center.
Error 50058, on the other hand, means the account is valid, but the authentication session failed—which is fixable using the methods above.
Error Code 50058 Android
Whether you’re trying to sign into Microsoft Teams or Outlook on Android, encountering error code 50058 on Android can prevent access to essential features.
The error code 50058 in Outlook Android is commonly reported when users attempt to synchronize their accounts across devices or when there are issues with account permissions.
On Mac, users may also experience error code 50058, indicating a similar issue with authentication or account configuration. Regardless of the device, the error stems from a conflict between the authentication token and the user’s credentials, preventing seamless access to the application.
To resolve error 50058, users typically need to perform some troubleshooting steps. Outlook error 50058 and Teams error code 50058 Android can often be fixed by clearing app data, re-logging into the application, or even reinstalling the app to reset any corrupted settings.
Users encountering this error should also ensure that their Microsoft account credentials are up-to-date and that they have the correct permissions set for accessing services like Teams and Outlook.
In conclusion, error code 50058 can disrupt productivity for users of Microsoft Teams and Outlook, especially on mobile devices like Android and Mac.
Whether you’re facing the issue on Teams, Outlook, or both, understanding the causes behind error code 50058 and taking the right steps to resolve it is crucial for maintaining smooth operation in your daily workflow.
Cause of Error 50058
As per Microsoft docs, the reason for this error is that the user is not signed in to the Outlook application connected to Office 365 or the online version. Unauthenticated error. The single sign-on (SSO) context is no longer valid and is corrupted. It is no longer found or invalid on your system.

Fix Error Code 50058 of Office 365
This typical error occurs more with Outlook applications than Word or Excel.
- Type Credential Manager in the Windows 11/10 search bar.
- Click on
Windows Credentials. - Scroll through to locate Office items.
- Click the drop-down against it.
- Username and password are in encrypted form.
- Click the Edit label and re-enter the Office 365 credentials.

Create a new Windows profile.
If, for some reason, you have used an Office application before and it’s null, then it could throw this error.
For Outlook, you can delete the email account and add it again. In some cases, your Microsoft account will prevent you from logging in to your Office 2019 or 2016 account, as both are connected.
In that case, create another Windows 11/10 user and log into it. Now try logging into your Office account with current credentials. It should correct the error.

Azure Active Directory (AD) and Outlook sign-in prompt
In your workplace or school, your Office account may be connected to an Azure or Exchange server. In certain scenarios, Teams, OneDrive, and Windows accounts are interlinked. So a single sign-in is all that is required to use all the apps.
Azure AD sign-in error is one of the causes. Outlook or another application performed a silent sign-in and was not successful. You need to start the interactive workflow again. You see the sign-in status as a failure in Azure reports.

But corruption in one application could produce error 50058 in Outlook. Frequent sign-in prompts asking you to enter your password are the common issue. It can be irritating. One way is to log out of all single sign-in applications connected to Azure or the work server.
Then log in again.
Teams error code 50058 on Android
If you encounter it, it’s often due to authentication issues or incorrect account settings. This error can prevent you from accessing Microsoft Teams, disrupting your productivity. Below is a step-by-step guide to help you troubleshoot and resolve the issue effectively.
Step 1: Check Your Internet Connection
Ensure you have a stable and active internet connection. Poor connectivity can often cause authentication issues, resulting in Teams error code 50058. Switch between Wi-Fi and mobile data to see if the problem persists.
Step 2: Clear App Cache and Data
Corrupted cache or data in the Teams app might be causing the error. Here’s how to clear it:
- Go to your Android Settings.
- Tap on Apps & notifications.
- Find Microsoft Teams from the list of apps.
- Tap on Storage & cache.
- Click Clear Cache, and then Clear Data.
After doing these steps, relaunch the Teams app and check if the issue is resolved.
Step 3: Re-login to Your Account
The team’s error code 50058 could indicate an authentication failure. Try signing out and then signing back into your Teams account:
- Open the Teams app and tap on your profile icon.
- Select Sign Out.
- Close the app completely and then reopen it.
- Sign back in with your correct credentials.
This refreshes your authentication token and may resolve the issue.
Step 4: Check Your Microsoft Account Permissions
Ensure that your Microsoft account has the proper permissions to access Teams. If you’re using a work or school account, your organization’s administrator should verify that the account is correctly configured. Sometimes, account settings or permissions may change, leading to login issues.
Step 5: Update the Teams app.
Running an outdated version of Microsoft Teams can cause compatibility issues, including error code 50058. Make sure you’re using the latest version:
- Go to the Google Play Store.
- Search for Microsoft Teams.
- Tap Update if an update is available.
Step 6: Reinstall the Teams App
If the error persists, uninstall and reinstall the Teams app:
- Go to Settings > Apps.
- Select Microsoft Teams and tap Uninstall.
- After uninstallation, go to the Play Store, search for Teams, and reinstall it.
Reinstalling the app can resolve issues with corrupted app files.
Step 7: Contact Microsoft Support
If none of the above steps resolve the issue, contact Microsoft Support for further assistance. There might be a more complex underlying issue that requires expert attention.
By following these steps, you should be able to resolve Teams error code 50058 on Android and regain access to your account without further issues.
Error 50058 with Teams on Android
As Microsoft products are used on multiple devices like Android, Mac, etc., you can have other reasons. You may get a code to log in to the Android device. You can see the profile, chats, folders, etc., but it may request an authentication code or any other.
Try to uninstall the Teams or Outlook app on Android and reinstall again. It should rectify it.
If you are using Microsoft products on Android, always keep the latest versions of Outlook, Teams, Office suite of products,
Desktop Outlook client and Office 365 on MacBook Pro
In one case, where Outlook was installed on a MacBook Pro, you were unable to log in to your Office account. Credential Manager may not be found, as it is not a PC.
Check if you can log in using the web link—https://outlook.office.com/owa
Also, a personal account or organization account makes a difference in SSO.
Repeated prompts for authentication on your Outlook for Mac may be received. Reset the Outlook account. Use Tools > Accounts on the Outlook toolbar.
Re-enter your User Principal Name (UPN) on the Exchange/Office 365 account. For this error 50058 problem, this solution can work.
Go to the current version of Outlook.
Go to Help > Check for Updates.
Click on Advanced and select “Current” as the channel.
Uninstall the Microsoft Outlook app from the /Applications folder. Empty the trash to completely uninstall Office.
Download Office 365 from this link—https://go.microsoft.com/fwlink/?linkid=525133
Please run the installer and install it again.
Uncheck/Check New Outlook to see if the problem is resolved. This is trial and error.
Sometimes, the new Outlook version can solve the problem. In some cases, the legacy one may work.
How to fix Microsoft Teams error code 50058
If you’re seeing an error code when using Microsoft Teams, it means that there’s a problem with your account settings. To fix the issue, you’ll need to update your account settings in the Teams app. Here’s how:
1. Open the Teams app and go to your account settings.
2. Click on the “Update account” button.
3. Enter your updated account information and click “Save.”
4. Close the Teams app and restart it.
5. Try using Teams again and see if the error is still appearing.
How to fix Error code 50058
There are a few different ways that you can go about fixing this in Outlook 2016.
One option is to try restarting your computer. If that doesn’t work, you can try running the Microsoft Office 365 Diagnostics Tool.
This tool will help you diagnose and fix any issues with your Outlook installation. Finally, if neither of those options works, you can try uninstalling and reinstalling Outlook 2016.
Correlation ID error Office 365
A number of things can cause the 50058 error code, which is a general Outlook error.
Often, a corrupt or damaged PST file causes this error. If you are receiving this error, it is recommended that you run the Inbox Repair Tool to repair your PST file.
You can locate the Inbox Repair Tool in your Microsoft Office installation folder (usually C:\Program Files\Microsoft Office\).
If the Inbox Repair Tool does not resolve the issue, there may be something wrong with your Office 365 account.
To troubleshoot this, try accessing your account using the Microsoft Outlook Web App.
If you can access your account using the web app, there may be an issue with your Outlook installation or settings.
Try resetting your Outlook settings or uninstalling and then reinstalling Outlook.
If you are still having problems, please contact Microsoft Support for further assistance.
Error code 50058 Android
A problem with your Android device usually causes this error code. Try the following steps to resolve the problem:
1. Restart your device. This step might fix the problem.
2. Verify for any Android updates that might be available for your device.
3. If you’re using an email app other than Outlook, try removing and re-adding your Outlook account to your device.
4. If you still can’t get Outlook to work on your Android device, contact our support team for help.
Error code: 50058 Mac
If you are facing Outlook 2016 on your Mac, then you can follow the given troubleshooting steps to fix the issue:
* Restart your system and then launch Outlook again.
* Check your internet connection and make sure that it is working properly.
* Try to access your Outlook account using a different browser.
* Disable any antivirus or firewall program that is running on your system.
* Delete all the temp files from your system.
* Repair your Microsoft Office installation.
* Try to access your Outlook account using a different computer.
Teams error code: 50058 iPhone
If you’re using Outlook 2016 for Windows, it means that your mail server is unavailable. This issue can be caused by several things, including:
– Your network connection is down.
– Your mail server is down or unavailable.
– You’re trying to connect to a public Wi-Fi network that doesn’t allow access to mail servers.
To address this problem, try the following:
– Make sure that your computer is connected to the internet.
– Consult with your IT department or ISP to see if there’s a problem with your mail server.
– If you’re trying to connect to a public Wi-Fi network, find one that does allow access to mail servers.
Error code 50058 OneDrive
If you’re experiencing issues while using Microsoft Outlook 2016, it’s likely due to an issue with OneDrive. Try the following steps to resolve the issue:
1. Make sure you have the latest version of OneDrive installed.
2. Open Outlook and go to the File tab.
3. Under Account Settings, select Account Settings.
4. Select your account and click Change.
5. Click More Settings and then select the Advanced tab.
6. Under Microsoft OneDrive, click Repair.
7. Follow the prompts to complete the repair process.
Does error code 50058 affect OneDrive sync?
Yes. Microsoft error code 50058 blocks OneDrive’s ability to authenticate with Microsoft 365, causing sync to stop entirely. The sync icon will show an error. Clearing Windows credentials and signing back in (Fix 1 and Fix 2 above) resolves this in most cases.
Can error code 50058 be caused by MFA settings?
Yes. If your organization enforces Multi-Factor Authentication (MFA) or Conditional Access policies, apps that attempt silent sign-in cannot satisfy the MFA requirement automatically and will return error 50058. Complete the MFA prompt manually when it appears and do not close the sign-in window prematurely.
Why do I keep getting error 50058 after signing in?
Repeated Microsoft error code 50058 after signing in usually indicates a corrupted Windows user profile, a Conditional Access policy that prevents silent re-authentication, or cached credentials that keep conflicting. Try Fix 5 (create a new Windows profile) or check with your IT admin for conditional access policy adjustments.
resolve do I fix error 50058 in Outlook Exchange?
For Outlook error code 50058 exchange, open Outlook → File → Account Settings → select your Exchange account → Change. Verify your UPN is correct, click More Settings → Advanced, and run the OneDrive repair if available. On a Mac, use Tools → Accounts to remove and re-add the Exchange account.
What is the difference between error 50057 and error 50058?
50057 error code “Azure” means the user account is disabled in Azure Active Directory—contact your IT admin to re-enable it. Error code 50058 means the account is active but the authentication session failed silently. They require completely different fixes.
Is error code 50058 the same as AADSTS50058?
Yes. AADSTS50058 is the full Azure Active Directory / Microsoft Entra ID error code string for what is displayed as error code 50058 in Microsoft 365 apps. The “AADSTS” prefix indicates the error originated from the Azure AD Security Token Service.
Conclusion
Error code 50058 is a Microsoft Entra ID authentication failure that blocks access to Teams, Outlook, OneDrive, and other Microsoft 365 apps. While frustrating, it’s almost always fixable without IT involvement if you follow the right steps.
Start with Fix 1—clear Windows Credential Manager—which resolves the issue for most Windows users. For Android, clearing the app cache and data is the equivalent first step. If either fix does not work, please proceed through the remaining solutions in order.
For IT admins, reviewing your Conditional Access policies in Microsoft Entra ID is the key step — especially if the error started appearing after the October 2025 MFA enforcement rollout.
If this guide resolved your Microsoft error code 50058, share it with a colleague who’s hitting the same wall—and drop a comment below with which fix worked for you.
