When you click a OneDrive for Business web upload link in Microsoft Edge, your browser may open the wrong tenant — the OneDrive site of a different organization than the one you intended. This happens because Edge caches multiple Microsoft 365 identities and sometimes selects the wrong account when opening a new tab. This guide explains the root cause and provides a step-by-step fix to ensure Edge always opens the correct tenant.
The problem typically appears when you are signed into multiple work, school, or personal Microsoft accounts in Edge. The web upload link triggers a redirect to login.microsoftonline.com, where Edge picks the first cached account instead of the one associated with the file or folder you clicked. By clearing specific browser data and adjusting Edge profile settings, you can force the correct tenant to load every time.
This article covers the technical cause, the exact browser settings to change, and how to prevent the issue from recurring. You will also learn what to do if the fix does not work immediately.
Key Takeaways: Fixing the Wrong Tenant in Edge
- Edge settings > Profiles > Multiple account sign-in: Disable this setting to prevent Edge from automatically switching accounts when opening OneDrive links.
- Edge settings > Privacy, search, and services > Clear browsing data: Clear cached images, cookies, and site data for login.microsoftonline.com and onedrive.live.com to remove stale tenant tokens.
- Use the correct tenant URL directly: Bookmark the tenant-specific OneDrive URL format https://yourdomain-my.sharepoint.com to bypass account selection conflicts.
Why Edge Opens the Wrong OneDrive Tenant
OneDrive for Business uses Azure Active Directory for authentication. When you click a web upload link, the browser sends a request to login.microsoftonline.com, which presents a list of cached Microsoft accounts. Edge, by default, allows multiple profiles to run simultaneously, and it stores authentication tokens for each profile in its local storage.
The issue occurs when the link does not contain a tenant-specific redirect. Instead, the link points to a generic OneDrive URL such as onedrive.com or onedrive.live.com. Edge then checks its cached tokens and selects the account that was most recently used, which may belong to a different tenant. This is not a bug — it is the intended behavior of Edge’s multi-account caching, but it causes confusion when you need to access a specific organization’s OneDrive.
How Edge Stores Tenant Tokens
When you sign into a Microsoft 365 tenant in Edge, the browser writes a token to the local storage of login.microsoftonline.com. If you sign into a second tenant in the same Edge profile, the new token overwrites or joins the existing token list. The next time you open a OneDrive link, Edge reads the token list and picks the account that appears first — which is often the most recently authenticated one, not the one you need.
Steps to Force Edge to Open the Correct OneDrive Tenant
- Disable multiple account sign-in in Edge
Open Edge and go to Settings > Profiles > Preferences. Turn off the toggle for Multiple account sign-in. This prevents Edge from automatically switching between cached accounts when a web upload link is clicked. Restart Edge after making this change. - Clear cached tokens for Microsoft login and OneDrive
In Edge, go to Settings > Privacy, search, and services > Clear browsing data. Click Choose what to clear. Set the time range to All time. Check Cookies and other site data and Cached images and files. Click Clear now. This removes all stored authentication tokens for login.microsoftonline.com and onedrive.live.com. - Sign out of all Microsoft accounts in Edge
Click the profile icon in the upper-right corner of Edge. Click Manage profile settings. Under Sign in, click Sign out. Repeat this for every profile that has a Microsoft account signed in. Close all Edge windows. - Sign back in using the correct tenant URL
Open a new Edge window and navigate directly to your tenant-specific OneDrive URL. The format is https://yourdomain-my.sharepoint.com. Replace yourdomain with your organization’s domain. Sign in using only the account associated with that tenant. Do not add other accounts to the same profile. - Test the web upload link
Click a OneDrive for Business web upload link from any source — an email, a SharePoint document library, or a Microsoft Teams file. The link should now open the correct tenant without prompting you to choose an account.
If OneDrive Still Opens the Wrong Tenant After the Fix
The link is a generic onedrive.com URL
Some web upload links use the generic domain onedrive.com instead of your tenant-specific URL. These links are designed to redirect to the correct tenant based on the logged-in account, but Edge may still pick the wrong one. To fix this, replace the generic URL with your tenant-specific URL before clicking. You can also ask your IT admin to update the link to include the tenant ID.
Another Edge profile has the correct account
If you use multiple Edge profiles, the correct account may be signed into a different profile. When you click a link in one profile, Edge sometimes opens the link in another profile that has the cached token. To prevent this, go to Settings > Profiles > Preferences and turn off Allow single sign-in for work or school sites using this profile. Then clear browsing data again and restart Edge.
Windows account sync is interfering
If your Windows 10 or Windows 11 user account is connected to a Microsoft 365 work or school account, Edge may use that identity even when you want a different tenant. To stop this, go to Windows Settings > Accounts > Access work or school. Disconnect any accounts that are not related to the tenant you want to use. Then restart Edge.
Tenant-Specific OneDrive URL vs Generic OneDrive URL: Key Differences
| Item | Tenant-Specific URL | Generic URL |
|---|---|---|
| URL format | https://yourdomain-my.sharepoint.com | https://onedrive.com or https://onedrive.live.com |
| Account selection | Forces authentication for the specified tenant | Relies on browser-cached account tokens |
| Risk of wrong tenant | Low — always opens the correct tenant | High — may select the most recently used account |
| Best use case | Direct links to files, folders, or shared links | Web upload links from external sources |
Using the tenant-specific URL is the most reliable way to avoid tenant confusion. If you frequently click web upload links, bookmark your tenant-specific OneDrive URL and open it manually before clicking the link.
You can now prevent Edge from opening the wrong OneDrive tenant by disabling multiple account sign-in, clearing cached tokens, and using your tenant-specific URL. As a next step, check if your IT admin can configure Azure AD conditional access policies to restrict which tenants can authenticate from your device. For advanced control, use the Edge profile manager to create a dedicated profile for each Microsoft 365 tenant you work with.