How to Fix OneDrive Error 0x8004e4d6
Diagnostic Procedures
- 1 Identify the meaning of OneDrive error 0x8004e4d6
- 2 Reset OneDrive cache and database files
- 3 Clear local identity token directories
- 4 Verify organizational Conditional Access policies
- 5 Update or reinstall the OneDrive desktop client
How to Fix OneDrive Error 0x8004e4d6
If you are encountering OneDrive Error Code 0x8004e4d6, you are facing an authentication token binding failure. This error prevents users from completing the sign-in flow on Microsoft OneDrive, often occurring on work or school devices. It signals that the system’s local authentication broker cannot supply a valid cryptographic signature to Microsoft’s cloud login endpoints.
This guide covers the causes of this error and details the steps required to resolve it on both Windows and macOS.
What Causes OneDrive Error 0x8004e4d6?
This login error is typically triggered by:
- Broken Microsoft Entra ID Broker Plugin: The Windows
AAD.BrokerPlugincomponent, which handles single sign-on (SSO), is unregistered or corrupted. - Conditional Access Blockage: Your organization has active security policies requiring hybrid Azure AD-joined devices, particular IP ranges, or MFA states that the local client fails to negotiate.
- Corrupted OAuth Cache: Stale credentials in the system directory preventing Microsoft’s sign-in wizard from initializing.
- Client Database Out of Sync: System clock skew or local database index issues causing the client to pass invalid security flags.
Detailed Steps to Resolve Error 0x8004e4d6
Platform-Specific Steps for Windows Users
Method 1: Re-register the Azure Active Directory Broker Plugin
If the local single sign-on system component is corrupted, re-registering it via PowerShell resolves communication issues with Microsoft login servers.
- Right-click the Start menu and select Terminal (Admin) or PowerShell (Admin).
- Paste and run the following command to re-register the plugin:
Add-AppxPackage -Register "C:\Windows\SystemApps\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy\AppxManifest.xml" -DisableDevelopmentMode -ForceApplicationShutdown - Restart your computer and try logging in.
Method 2: Purge local identity tokens
Clear cached token directories to force OneDrive to establish a new authentication state.
- Open Command Prompt as Administrator.
- Run the following command block:
taskkill /f /im onedrive.exe taskkill /f /im MicrosoftSharePointApp.exe rmdir /s /q "%localappdata%\Microsoft\OneAuth" rmdir /s /q "%localappdata%\Microsoft\IdentityCache" - Relaunch OneDrive and enter your login details.
Method 3: Run the OneDrive client reset
Clear local app configurations that could be caching corrupt states:
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset
Platform-Specific Steps for macOS Users
Method 1: Delete Local Cache Folders
On macOS, purging the application containers resets Microsoft’s authentication broker.
- Open Terminal (located in
/Applications/Utilities/). - Run the following command block:
killall OneDrive defaults delete com.microsoft.OneDrive-mac rm -rf ~/Library/Containers/com.microsoft.OneDrive-mac rm -rf ~/Library/Group\ Containers/UBF8T346G9.OneDriveStandaloneSuite - Open OneDrive from the Applications folder.
Method 2: Purge Keychain Security Items
- Open Keychain Access (press
Command + Space, typeKeychain Access, and press Enter). - Search for OneDrive in the search bar.
- Select and delete all entries containing
OneDrive Cached CredentialorOneDrive Standalone Credential. - Relaunch OneDrive and authenticate.
Method 3: Verify Web Connection and Conditional Access Policies
- Open Safari or Chrome and go to portal.office.com.
- Sign in with your work or school account.
- If you see a warning indicating that your browser or device is not authorized under a Conditional Access Policy (e.g., “You can’t get there from here”), the error is server-side. You must contact your IT Administrator to authorize your computer’s MAC/IP address or join the device to the company MDM system.
Summary Checklist for Quick Reference
- Re-registered the
Microsoft.AAD.BrokerPluginpackage on Windows using PowerShell. - Deleted the cached
OneAuthandIdentityCachedirectories from the Local AppData folder. - Purged matching OneDrive keys from macOS Keychain Access.
- Reset local configuration databases using the
/resetterminal command. - Verified with the system administrator that no Conditional Access Policies block the device.