OneDrive

OneDrive error 0x8004deef: you don't have access to this service

OneDrive error 0x8004deef blocks a work or school sign-in, usually because of a missing or expired license or cached credentials that no longer match.

By EpiFive Editorial TeamSources checked How we check our guides

What the error means

Error 0x8004deef stops a OneDrive for work or school account from signing in to the sync app. The message reads "You don't have access to this service. For help, contact your IT department. (Error code: 0x8004deef)". Microsoft's Learn article says the issue might occur if your OneDrive account has a problem, such as a missing license or a credential mismatch.

Those two causes sit in different places. A missing or expired license is a tenant problem that only a Microsoft 365 administrator can fix: depending on how the organization bought OneDrive, the user may no longer have a OneDrive license assigned, or the license may have expired. A credential mismatch is a problem on the PC, where Office and OneDrive keep cached account identities. If those cached identities belong to an old or different account, sign-in keeps presenting the wrong credentials, and the service refuses access.

Because the message tells users to contact IT, the license check usually comes first. If the license is fine, clearing the cached identities on the device is Microsoft's second method. A quick way to tell the two apart is scope: Microsoft notes that when many users see the error, the subscription itself may have expired.

Common causes

  • The user no longer has a OneDrive license assigned.
  • The user's license, or the organization's subscription, has expired.
  • Cached Office account identities on the PC do not match the account signing in.
  • Cached credentials in the OneAuth or IdentityCache folders are stale.

How to fix it

1. Admins: check the user's OneDrive license

A Microsoft 365 administrator must do this step. In the Microsoft 365 admin center, select Users > Active users, select the affected user, then select Licenses and apps. Expand Licenses and make sure a license that includes OneDrive is assigned. If several users are affected, open Billing > Your products to check whether the subscription has expired.

2. Remove the cached Office identities from the registry

Back up the registry first; Microsoft warns that serious problems might occur if you modify it incorrectly. Start Registry Editor, go to the key below, right-click Identity and select Delete:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Common\Identity

If Shared Computer Activation is enabled, also delete the same key under the user's SID. To find the SID of the signed-in user, run:

whoami /user
HKEY_USERS\<user_SID>\SOFTWARE\Microsoft\Office\16.0\Common\Identity

3. Clear prior Office activations and stored credentials

If the issue persists, Microsoft points to its "Clear prior activation information manually" article. Expand "Section A: Remove Office licenses & cached accounts" and follow "Part 1: Remove previous Office activations" and "Part 3: Remove Office credentials stored in Windows Credential Manager".

4. Remove the cached credential folders

If you still see the error, sign out of OneDrive and remove all subfolders in these two folders, then sign in to OneDrive again:

%localappdata%/Microsoft/OneAuth
%localappdata%/Microsoft/IdentityCache

If nothing works

As a general step, sign in to the OneDrive website with the same account. If the web also refuses access, the problem is on the account or tenant side and needs an administrator. If the account was deleted and re-created with the same user name, a related code, 0x8004e4d0, describes the site user ID mismatch that can follow. The OneDrive sync problems guide covers resetting the sync app and the admin policies that can also block sign-in.

What we checked

One Microsoft Learn article was read: "Error 0x8004deef when signing in to OneDrive". It gives the exact message, names a missing license or a credential mismatch as the cause, and documents the admin license check, the subscription check for multiple users, the Identity registry key removal with the Shared Computer Activation variant, the Office activation cleanup and the OneAuth and IdentityCache folder cleanup. The error was not reproduced for this page.

Last checked: 2026-11-21.

Official sources

Questions people ask

What causes OneDrive error 0x8004deef?

Microsoft says it can occur when the OneDrive account has a problem such as a missing license or a credential mismatch. It applies to OneDrive for work or school accounts.

Several users get 0x8004deef at once. What does that mean?

Microsoft says that if multiple users are affected, the subscription might be expired. An administrator can check it in the Microsoft 365 admin center under Billing > Your products.

Is it safe to delete the Office Identity registry key?

It removes cached Office account identities, so you sign in again afterwards. Microsoft warns that editing the registry incorrectly can cause serious problems, so back up the registry first, and on a managed PC let IT do it.

  • 0x8004e4d0 (OneDrive)

    OneDrive error 0x8004e4d0 is usually a site user ID mismatch after an account was deleted and re-created with the same UPN. Admins fix it with a diagnostic.

  • 0x8004de85 (OneDrive)

    OneDrive error 0x8004de85 (or 0x8004de8a) means a missing account or a personal and work account mismatch at sign-in. Check the account and license, then reset.

  • 0x8004def7 (OneDrive)

    OneDrive error 0x8004def7 stops sign-in when storage is over its limit, the account is suspended or frozen, or the sync app has configuration issues.

  • 0x8004de40 (OneDrive)

    OneDrive error 0x8004de40 means the sync app cannot connect to the cloud when you sign in, often because of TLS or cipher suite settings on the PC.

Not your code?

Search the error code library, or report a code we don't cover. Spotted something out of date on this page? Report a correction.