When you tap the web upload button in the OneDrive for Business app on Android, the browser sometimes opens the wrong Microsoft 365 tenant. Instead of your work or school account, you see a personal Microsoft account or a different organization’s login page. This happens because the Android WebView or the default browser caches authentication tokens from a previous session. This article explains why the tenant mismatch occurs and provides a reliable fix to force the browser to open the correct tenant login.
Key Takeaways: Fix OneDrive Android web upload redirecting to wrong tenant
- Android Settings > Apps > Default apps > Browser app: Set your preferred browser to Chrome or Edge and clear its cache to remove stale authentication cookies.
- OneDrive app > Settings > Account > Sign out: Sign out of all accounts in the OneDrive app, then sign back in using the correct work or school credentials.
- Browser address bar > type login.microsoftonline.com/{tenant-id}: Replace {tenant-id} with your organization’s tenant ID to force the browser to open the correct tenant login page.
Why OneDrive Web Upload Opens the Wrong Tenant on Android
The OneDrive for Business app on Android uses the system’s default browser or an embedded WebView to open the Microsoft 365 login page when you tap the web upload button. The web upload feature requires a browser-based authentication flow to upload files larger than the app’s native limit or to use advanced upload options. If the browser or WebView has cached cookies or authentication tokens from a previous session with a different Microsoft account, it may automatically redirect to that tenant’s login page instead of prompting for your work or school credentials.
Android’s default browser selection also plays a role. Some browsers, such as Chrome and Edge, store authentication state per profile. If you have multiple Microsoft accounts signed into the browser, the browser may pick the wrong one. Additionally, the OneDrive app itself may have cached an incorrect tenant identifier from a previous sign-in attempt. The root cause is almost always stale authentication data stored either in the browser or in the OneDrive app’s local cache.
Steps to Force OneDrive Web Upload to Open the Correct Tenant
Follow these steps in order to clear stale authentication data and ensure the browser opens the correct tenant login page. Perform each step completely before moving to the next.
Step 1: Clear Browser Cache and Cookies
- Open your default browser app
On your Android device, open the browser that is set as the default for opening web links. This is usually Chrome or Edge. - Access browser settings
Tap the three-dot menu in the top-right corner and select Settings. - Clear browsing data
Navigate to Privacy and security and tap Clear browsing data. Select the time range All time. Check Cookies and site data and Cached images and files. Uncheck Saved passwords and Autofill form data to preserve your saved login credentials. Tap Clear data. - Close and reopen the browser
Fully close the browser app from the recent apps list, then reopen it. This ensures the cleared cache takes effect.
Step 2: Sign Out of All Accounts in the OneDrive App
- Open the OneDrive app
Launch the OneDrive for Business app on your Android device. - Go to Settings
Tap your profile picture or initials in the top-left corner, then tap Settings. - Sign out of your account
Scroll down and tap Account. Tap Sign out. Confirm the sign-out when prompted. If you have multiple accounts signed into the app, sign out of each one. - Clear app cache
Go to your Android device’s Settings > Apps > OneDrive > Storage. Tap Clear cache. Do not tap Clear storage as that removes all app data and requires a full reconfiguration. - Restart the OneDrive app
Close the app completely from the recent apps list, then reopen it. - Sign back in
Sign in using your work or school account credentials. Ensure you select the correct organizational account, not a personal Microsoft account.
Step 3: Force the Browser to Open the Correct Tenant
- Obtain your tenant ID
Ask your Microsoft 365 administrator for your organization’s tenant ID. Alternatively, you can find it by signing into the Microsoft 365 admin center at admin.microsoft.com and navigating to Settings > Org settings > Organization profile > Tenant ID. - Open the browser directly
Open your default browser and type the following URL in the address bar:https://login.microsoftonline.com/<tenant-id>. Replace<tenant-id>with your actual tenant ID. This forces the browser to open the login page for your specific tenant. - Sign in with your work or school account
Enter your credentials. Check the box Stay signed in if you want to avoid repeating this step. After signing in, close the browser tab. - Test the web upload in OneDrive
Open the OneDrive app, navigate to a folder, and tap the + button. Select Upload or Web upload. The browser should now open the correct tenant login page, and you can proceed with the upload.
If OneDrive Still Opens the Wrong Tenant After the Fix
OneDrive Web Upload Opens a Personal Microsoft Account Page
If the browser still shows a personal Outlook.com or Live.com login page, the browser may have a saved session for that account. Go to the browser’s settings and tap Passwords. Remove any saved passwords for login.microsoftonline.com and login.live.com. Then repeat Step 3 above.
Web Upload Button Is Grayed Out or Missing
Some Android devices restrict the browser intent used by OneDrive for the web upload feature. If the button is grayed out, ensure you have set a default browser app in Android Settings > Apps > Default apps > Browser app. Choose Chrome or Edge. If the button is still missing, update the OneDrive app to the latest version from the Google Play Store.
OneDrive Prompts for Credentials Repeatedly
If you are asked to sign in every time you use web upload, the browser is not saving the authentication cookie. In the browser’s settings, enable Cookies under Site settings. Ensure third-party cookies are not blocked for login.microsoftonline.com. Also, check that your Android device’s date and time are set correctly, as incorrect time causes authentication token rejection.
Web Upload via Browser vs OneDrive App: Key Differences
| Item | Browser-Based Upload | OneDrive App Native Upload |
|---|---|---|
| File size limit | Up to 250 GB per file | Up to 15 GB per file |
| Authentication method | Browser cookies and session tokens | OAuth tokens stored in the app |
| Tenant switching behavior | Opens default browser, may use cached tenant | Uses the tenant signed into the app |
| Upload progress visibility | Visible in browser download manager | Visible in OneDrive app upload queue |
| Offline upload capability | Requires active internet connection | Supports queued uploads when offline |
After following the steps above, you can now force the OneDrive for Business Android app to open the correct tenant for web uploads. The key action is clearing the browser cache and signing out of the OneDrive app before using the direct tenant login URL. For a permanent fix, ask your IT administrator to configure the Azure AD app registration for OneDrive to restrict authentication to your organization’s tenant only. This prevents the browser from ever redirecting to a different tenant.