When you tap the OneDrive for Business web upload link on an Android device, the browser may open your personal OneDrive or a different work tenant instead of the correct business account. This happens because Android does not always pass the authentication context correctly between the OneDrive app and the browser. This article explains why the wrong tenant opens and provides step-by-step fixes to force the correct tenant login.
Key Takeaways: Fixing OneDrive Web Upload to Wrong Tenant on Android
- Clear browser cache and cookies: Removes stored tenant tokens that cause automatic redirect to the wrong account.
- Use the tenant-specific URL with your domain: Forcing the URL like
https://[yourdomain]-my.sharepoint.comensures the correct tenant loads. - Check the OneDrive app account settings: Verifying the active account in the app prevents the web upload link from using a cached personal account.
Why OneDrive Web Upload Opens the Wrong Tenant on Android
The root cause is that Android treats the web upload action as a general web link, not a deep link tied to a specific Microsoft 365 tenant. When you tap “Upload to OneDrive” from another app, Android sends the URL to the default browser. The browser then checks its cache for an existing Microsoft authentication token. If the browser previously logged in to a personal OneDrive account or a different work tenant, it reuses that token and redirects to the associated tenant. The OneDrive app itself does not control which tenant the browser loads after the link is opened.
This problem is more common on Android 12 and later because those versions enforce stricter app-to-browser link handling. The OneDrive app cannot inject a tenant hint into the URL that the browser receives. As a result, the browser chooses the tenant based on its own cookie store. The fix requires either clearing the browser state or using a direct tenant URL that bypasses the browser’s cookie decision.
Steps to Force OneDrive Web Upload to Open the Correct Tenant
Use these methods in the order shown. Test the web upload after each method before moving to the next.
Method 1: Clear Browser Cache and Cookies for Microsoft Sites
- Open your default browser
On your Android device, open Chrome, Samsung Internet, or whatever browser you normally use. Do not open the OneDrive app yet. - Go to browser settings
Tap the three-dot menu in the top-right corner, then tap Settings. - Clear browsing data
Tap Privacy and security then Clear browsing data. Select Cookies and site data and Cached images and files. Set the time range to All time. Tap Clear data. - Close and reopen the browser
Fully close the browser app from the recent apps screen. Open it again. - Test the web upload
Open the OneDrive app, tap the plus icon, then tap Upload. Choose a file. When the browser opens, you should see the correct tenant login page. Sign in with your work credentials.
Method 2: Use a Tenant-Specific Upload URL
- Get your tenant-specific upload URL
Open a desktop browser and sign in to the Microsoft 365 admin center. Go to Settings > Org settings > OneDrive. Under OneDrive URLs, copy the value labeled My Site URL. It looks likehttps://yourcompany-my.sharepoint.com. - Create a bookmark on Android
Open Chrome on your Android device. Tap the address bar, type or paste the My Site URL, and press Enter. Sign in with your work account. Once the page loads, tap the three-dot menu and tap the star icon to bookmark the page. Name it “OneDrive Work Upload.” - Use the bookmark for uploads
When you need to upload a file via web, open the bookmark instead of using the OneDrive app’s upload link. This forces the browser to load the correct tenant directly.
Method 3: Switch the Active Account in the OneDrive App
- Open the OneDrive app
Tap the OneDrive icon on your Android device. - Go to account settings
Tap your profile picture or initials in the top-left corner. Tap Settings. - Check the active account
Under Accounts, see which account is listed as active. If a personal account or the wrong work account is listed, tap Add account and sign in with the correct work credentials. Then tap the three-dot menu next to the wrong account and select Remove account. - Test the upload again
Tap the plus icon, then Upload. The browser should now open with the correct tenant because the app no longer holds a conflicting account token.
If OneDrive Still Opens the Wrong Tenant After These Fixes
OneDrive Web Upload Opens a Personal Account Instead of Work
This happens when the browser stores a personal Microsoft account cookie. To fix this, open the browser and manually sign out of all Microsoft accounts. In Chrome, tap the three-dot menu, tap Settings > Sign in and sync, then tap Sign out. After signing out, clear cookies again and repeat Method 1. Then use the tenant-specific URL from Method 2 to sign in to the work account first.
OneDrive Web Upload Opens a Different Work Tenant
If you have access to multiple Microsoft 365 tenants, the browser may pick the one with the most recent cookie. To fix this, open the browser and navigate to https://login.microsoftonline.com/common/oauth2/logout. This signs you out of all Microsoft 365 tenants. Then close the browser, reopen it, and sign in only to the tenant you want to use. After that, the web upload link should target that tenant.
OneDrive App Shows “Account Not Found” After Clearing Browser Data
Clearing browser cookies does not affect the OneDrive app itself. If the app shows an error, open the app settings and tap Reset under Sync and backup. This refreshes the app’s connection to your tenant. Then sign in again with your work credentials. The web upload function will then work with the correct tenant.
OneDrive Web Upload via App vs Browser Upload: Key Differences
| Item | Web Upload via OneDrive App | Direct Browser Upload |
|---|---|---|
| Tenant control | Depends on browser cookies and cache | You manually enter the tenant URL |
| File size limit | 250 GB per file | 250 GB per file |
| Authentication method | Uses browser SSO token | Uses browser SSO token |
| Best for | Quick uploads from other apps | Reliable uploads to a specific tenant |
| Requires clearing cache | Often needed to fix tenant mismatch | Not needed if you use the tenant URL |
After applying the steps in this guide, you can force OneDrive web upload to open the correct tenant on Android. Use the tenant-specific URL bookmark as your primary upload method to avoid tenant mismatch. For advanced control, configure the OneDrive tenant restriction policy in the Microsoft 365 admin center under Settings > Org settings > OneDrive > Sync to block sign-ins from personal accounts and other tenants.