0x8004deef: How to Quickly Fix this OneDrive Error

Ensure the user has been assigned a valid OneDrive license

Reading time icon 5 min. read


Readers help support Windows Report. When you make a purchase using links on our site, we may earn an affiliate commission. Tooltip Icon

Read the affiliate disclosure page to find out how can you help Windows Report effortlessly and without spending any money. Read more

Key notes

  • 0x8004deef error indicates that you do not have access to OneDrive business. 
  • The error mostly occurs when the user does not have a valid license or the cache folders have become corrupt. 
  • Deleting the cached account folders should resolve this error code. 

0x8004deef

OneDrive is an exceptional tool that lets you protect, sync and share your files with other users of the network. However, this experience may be hampered by the error code 0x8004deef, which follows the message, You don’t have access to this service. For help, contact your IT department. 

Why do I encounter the error code 0x8004deef in OneDrive? 

The error code 0x8004deef is generally triggered in OneDrive due to the following reasons: 

  • Credential mismatch – You may run into the above error code if you enter the incorrect password more than the specified number of times. 
  • Missing license – If the users have an invalid license to access OneDrive business, the error code 0x8004deef is unavoidable. 
  • Restricted permissions – The admin may have imposed conditional access to block personal devices from using OneDrive business. 
  • Corrupt local cache – If the OneDrive cached folders get corrupted, the app is likely to malfunction and throw error codes like 0x8004deef. 
  • Bugged Windows Update – Several users have encountered the issue right after installing a new Windows update on your PC. 

In case, you are unable to access OneDrive business due to error code 0x8004deef, execute the fixes listed below. 

How do I fix the OneDrive error code 0x8004deef? 

Try these simple solutions on your computer before moving on to the complex ones. 

If the fixes did not help in this situation, perform the following actions. 

1. Ensure the user has a valid license 

  1. Visit the Microsoft 365 Admin Center on your preferred browser and enter the login credentials of the administrator account of your organization.
  2. Click Users on the left navigation panel and then Active users from the expanded list. 0x8004deef
  3. From the user list, click the name of the user experiencing the problem. 
  4. Switch to the Licenses and Apps tab in the user pane and expand the Licenses section. Here, ensure that the OneDrive license is assigned to the user. 0x8004deef

There is a possibility that the user does not have a OneDrive license assigned or that it may have expired long ago, causing the 0x8004deef error. 

2. Delete the cached account identities

Note icon NOTE
Before implementing these methods, back up the Windows Registry for restoration if you mess up somewhere. 

2.1 In Device based activation 

  1. Hit the Windows key, type regedit in the search bar on top, and select the Run as adminstrator from the result section.  0x8004deef
  2. Enter the following path in the above section to access the subkey: HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Common\Identity
  3. Right-click the Identity sub-key in the left pane and select Delete from the context menu. 0x8004deef

2.2 Shared computer activation 

  1. Press the Windows key, type cmd in the search bar, and choose the Run as administrator option from the right section. 0x8004deef
  2. Choose Yes on the User Action Control window.
  3. Execute the following command in the command prompt window and note down the SID of the user currently signed in: whoami/user 0x8004deef
  4. Launch the Registry editor on your Window and navigate to the following location. Replace <user_SID> with the SID you found previously.  HKEY_USERS\<user_SID>\SOFTWARE\Microsoft\Office\16.0\Common\Identity
  5. Right-click Identity and choose Delete from the context menu. 

Now exit the registry editor and enter your work credentials into OneDrive to complete the login. 

3. Delete the Microsoft 365 cache folders 

  1. Use the Windows + R shortcut to bring up the Run dialog box, type the following path and press the OK button. %localappdata%/Microsoft/OneAuth 0x8004deef
  2. Once you navigate to the above location in the File Explorer window, use the Ctrl + A shortcut to select all the folders. 0x8004deef
  3. Press the Delete key to delete these folders on your PC. 
  4. Similarly, navigate to the following folder path and perform the steps mentioned above. %localappdata%/Microsoft/IdentityCache

After the authentication and identity cache folders of Microsoft 365 are expelled from your computer, log into OneDrive. Hopefully, the error code 0x8004deef will no longer bother you. 

4. Restrict OneDrive Personal Sync in your organization 

  1. Press the Windows icon, type regedit in the search bar on top, and select Run as adminstrator0x8004deef
  2. Navigate to the following key in the registry editor. Computer\HKEY_CURRENT_USER\Software\Policies\Microsoft\OneDrive
  3. Right-click anywhere and select New followed by DWORD (32-bit) value. 0x8004deef
  4. Rename it to DisablePersonalSync
  5. Double-click the newly created DWORD, assign 1 as the Value Data, and press OK to save the changes. 0x8004deef

Restricting OneDrive Personal from syncing on organizational devices should fix the 0x8004deef error code. 

That’s it! Implement these solutions and let us know which one worked for you in this situation. 

If OneDrive does not show photo thumbnails, you can try the solutions listed in this guide to fix the problem.

For any questions or suggestions, feel free to use the comments section below.

More about the topics: onedrive