OneDrive for Business web upload troubleshooting for iOS users: opens the wrong tenant
🔍 WiseChecker

OneDrive for Business web upload troubleshooting for iOS users: opens the wrong tenant

When you tap the Upload button in an iOS app and choose OneDrive for Business, the browser opens your personal OneDrive or a different work tenant instead of the correct company account. This happens because iOS stores a cached browser session that points to the last-used Microsoft identity, and the web upload flow does not always refresh that session. This article explains why the wrong tenant appears and provides step-by-step fixes to force the correct tenant to load every time.

Key Takeaways: Fix OneDrive Business Web Upload Opening Wrong Tenant on iOS

  • iOS Safari > Settings > Safari > Clear History and Website Data: Removes cached authentication tokens that force the wrong tenant.
  • iOS Settings > OneDrive > Reset OneDrive: Clears the app’s local cache and forces a fresh login prompt.
  • iOS Settings > Safari > Advanced > Website Data > Remove All Website Data: Deletes persistent cookies that store the old tenant ID.

ADVERTISEMENT

Why the OneDrive Business Web Upload Opens the Wrong Tenant on iOS

When you use the iOS Share sheet or the Upload to OneDrive action in apps like Files, Mail, or Microsoft Office, iOS launches Safari WebKit to authenticate the upload. Safari WebKit reuses the last Microsoft Entra ID session cookie stored in the browser. If you previously signed into a personal OneDrive account or a different business tenant, that cookie persists and Safari presents the same identity to the upload endpoint. The OneDrive for Business app itself may be logged into the correct account, but the web upload flow bypasses the app and relies entirely on the Safari session. This mismatch causes the web page to load the wrong tenant, showing files you cannot upload to or an empty library that belongs to another organization.

Steps to Force OneDrive Business Web Upload to Open the Correct Tenant

Perform these steps in order. Test the upload after each step. If the wrong tenant still appears, move to the next step.

  1. Clear Safari History and Website Data
    Open the Settings app on your iPhone or iPad. Tap Safari. Tap Clear History and Website Data. Confirm by tapping Clear History and Data. This removes all stored cookies and cached pages, including the Microsoft Entra ID session cookie that holds the wrong tenant.
  2. Reset the OneDrive App
    Open the Settings app. Scroll down and tap OneDrive. Tap Reset OneDrive. Confirm the reset. This clears the app’s local cache, account tokens, and offline files. After the reset, open OneDrive and sign in again with your correct work or school account.
  3. Remove All Website Data for Safari
    Open the Settings app. Tap Safari. Tap Advanced. Tap Website Data. Tap Remove All Website Data. Confirm. This deletes every persistent cookie and cache entry for all websites, including login.microsoftonline.com and onedrive.com.
  4. Force Quit Safari and OneDrive
    Swipe up from the bottom of the screen to open the App Switcher. Swipe left or right to find the Safari card. Swipe the Safari card up to close it. Repeat for the OneDrive app. Reopen OneDrive and attempt the upload again.
  5. Sign Out of All Microsoft Accounts in Safari
    Open Safari. Navigate to login.microsoftonline.com. If you see a signed-in account, tap your profile icon in the top-right corner. Tap Sign out of all accounts. Close the Safari tab. Try the upload from the iOS app again.
  6. Use Private Browsing Mode for the Upload
    Open Safari. Tap the tabs icon in the bottom-right corner. Tap the number in the center to switch to Private Browsing. Navigate to your organization’s SharePoint site or onedrive.com. Sign in with your work account. Now use the iOS Share sheet to upload a file. Private Browsing does not share cookies with the regular Safari session.

ADVERTISEMENT

If OneDrive Still Opens the Wrong Tenant After the Main Fix

Upload button is missing or grayed out

If the upload button in the iOS app is grayed out or does not appear at all, the issue is likely a permissions restriction set by your IT admin. Contact your Microsoft 365 administrator and ask them to verify that the OneDrive web upload feature is enabled in the Microsoft 365 admin center under Settings > Org Settings > OneDrive > Sync. The setting Allow syncing only on PCs joined to specific domains does not affect iOS web uploads directly, but related SharePoint restrictions can block the upload endpoint.

Upload opens a blank page or shows an error

A blank page or a generic error like Something went wrong usually indicates a network proxy or content blocker interfering with the login.microsoftonline.com domain. Disable content blockers in Safari by opening Settings > Safari > Content Blockers and toggling all blockers off. If you use a VPN or firewall app, temporarily disable it and test the upload again.

Upload opens the correct tenant but the file does not appear

If the web upload completes successfully but the file is not visible in the OneDrive app or web interface, the file was uploaded to a subfolder or the wrong library. After the upload finishes, the web page shows a confirmation message with a link to the destination. Tap that link to verify the exact folder. To avoid this, always navigate to the correct target folder in the web upload dialog before dropping or selecting the file.

Web Upload via iOS Share Sheet vs Direct App Upload: Key Differences

Item Web Upload via iOS Share Sheet Direct Upload in OneDrive App
Authentication method Uses Safari WebKit session cookies Uses OneDrive app’s own Microsoft Authentication Library token
Tenant selection Relies on last Safari login — can pick wrong tenant Always uses the account signed into the app
File size limit Depends on browser — typically 250 GB Up to 250 GB per file
Upload progress indicator Shows in Safari status bar Shows in-app progress bar with pause and cancel
Offline support Requires active internet connection Can queue uploads when connection is restored

After clearing the Safari cache and resetting the OneDrive app, the web upload flow should consistently open your correct OneDrive for Business tenant. If the problem returns after a few days, repeat steps 1 and 2. For persistent cross-tenant confusion, ask your IT admin to configure a Conditional Access policy that requires device compliance for login.microsoftonline.com, which forces a fresh authentication prompt each time the web upload endpoint is called.

ADVERTISEMENT