How to fix
Microsoft login error code 50058
on Windows
Resolve Microsoft login error code 50058 on Windows 10 or 11 effortlessly. Get expert-tested solutions and fix the issue in minutes!
What causes How to fix Microsoft login error code 50058 in Windows?
- Invalid or missing credentials
- Expired token
- Network issues
- Configuration issues
- Account lockout
- Software bugs and updates
Repairs Windows system files, removes malware, and restores a clean OS state — without reinstalling.
Hey, I was wondering if you could help me with error code 50058 in Office. It happens every time I try to log into any Microsoft apps, such as Teams.
Microsoft Office is a popular set of productivity tools, which is utilized across different settings, from households to big corporations. Despite its widespread use, errors can still occur. One common issue that users might face is error code 50058. This guide will delve into the details of error code 50058, its typical triggers, and how to fix it.
What is error code 50058?
Error code 50058 indicates a sign-in issue related to user authentication in Microsoft Office programs. This error can hinder users from using Office applications like Outlook, Teams, or Excel, causing interruptions in their workflow. The error message commonly displays as "AADSTS50058: User account identifier is not provided."
Common causes of error code 50058
Several factors can trigger error code 50058 in Microsoft Office. Understanding these causes can help in diagnosing the issue more effectively - these are a few of them:
- Invalid or missing credentials
- Expired token
- Network issues
- Configuration issues
- Account lockout
- Software bugs and updates
To fix the problem, you might have to clean credentials of the affected app, re-connect your Microsoft account, reset your password via Office Portal, create a new user profile, and repair or reinstall Office. If you need help to apply these methods, follow the guide below to fix error code 50058 in Windows.
If you are not that tech-savvy or simply want to save time, we recommend employing a powerful PC repair application [d1], which can repair registry issues, fix corrupted files, and perform many other troubleshooting tasks automatically for you, fixing Windows issues within just a few minutes.

Fix 1. Clean credentials of the affected app
Clearing the stored credentials of the Office app can resolve any conflicts or corrupt entries that might be causing the error. This step ensures that the app prompts for fresh, correct credentials.
- Type Credential Manager in Windows search and press Enter.
- Select Windows Credentials.
- Locate and remove any stored credentials related to Microsoft Teams or Office 365.
- Restart your computer.
- Attempt to log in again.

Fix 2. Re-connect your Microsoft account
Reconnecting your Microsoft account helps in refreshing the connection and resolving any sync issues that may be causing authentication problems.
- Right-click on Start and pick Settings.
- Click on Accounts.
- Select Access work or school.
- Click on your account and then Disconnect.
- Navigate to C:\users\USERNAME\AppData\Local\Packages (replace USERNAME with your actual username).
- Delete the contents of the folder.
- Restart your computer.
- Return to Access work or school and connect the relevant account.

Fix 3. Reset your password via Office Portal
Resetting your password ensures that any issues with the current password are resolved, and it refreshes your authentication tokens.
- Open your web browser and go to the Office Portal (portal.office.com).
- Sign in with your Microsoft account.
- Go to Security settings.
- Select Change Password.
- Follow the prompts to reset your password.
- Open the Office app and sign in with your new password.
Fix 4. Create a new user profile
- Open Windows Settings.
- Go to Accounts then Family/Family & other users.
- Under Other users, click Add account/Add someone else to this PC.
- Follow the prompts to create a new user account. If you don't have Microsoft account details, you can choose I don't have this person's sign-in information followed by Add a user without a Microsoft account.
- Assign a username and password for the new account and complete the setup.
- Then go back to the Accounts section. Under Family/Family & other users, select the newly created account and click Change account type.
- Under Account type, pick Administrator and click OK.

Fix 5. Repair Office
- Type Control Panel in Windows search and press Enter.
- Select Programs > Programs and Features.
- Select Microsoft Office and click on Change.
- Choose the option for Online Repair and click Repair.
- Follow the prompts to finish the repair.

Fix 6. Reinstall Office
- Right-click on Start and pick Apps and Features.
- Scroll down to find the MS Office installation.
- Click Uninstall and confirm with Uninstall.
- Follow on-screen instructions to remove the app completely.
- Press Win + E to open File Explorer.
- Navigate to the following location and delete its contents:
C:\Program Files\Microsoft Office - Next, type regedit in Windows search and press Enter.
- Go to the following locations in the Registry Editor and delete these items:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\AppVISV
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun
Computer\HKEY_CURRENT_USER\Software\Microsoft\Office - Restart your system and then reinstall Microsoft Office.

Bottom line
To fix error code 50058, you can clean the credentials of the affected app, re-connect your Microsoft account, reset your password via the Office Portal, create a new user profile, or repair or reinstall Office. If these methods do not resolve the issue, consider using a powerful PC repair application for additional assistance.
Frequently asked questions
Error code 50058 indicates that there's an issue with your Microsoft account authentication, often due to a problem with the account's security settings or permissions.
To troubleshoot, try signing out of your Microsoft account, then signing back in, or check your account settings and ensure that two-factor authentication is properly configured.
Yes, you can resolve the issue by clearing the cache of the Microsoft Store and Windows Store apps, which might help refresh your account credentials without needing to reset.




Report an issue
What's wrong with this guide? We review every report and update or remove content.
Report received — thank you. We'll review and fix it.
You need a free account to submit a report.
Be the first to comment