OneDrive

OneDrive error 0x8004e4d0: site user ID mismatch at sign-in

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.

By EpiFive Editorial TeamSources checked How we check our guides

What the error means

Error 0x8004e4d0 is shown to users in an organization who can't sign in to OneDrive: "You don't have access to this service. For help, Contact your IT department. (Error Code: 0x8004e4d0)." Microsoft's Learn article says the issue is usually caused by a site user ID mismatch.

Microsoft explains the mismatch like this. It most often happens when a user account is deleted in the Microsoft 365 admin center, or in Active Directory in directory synchronization scenarios, and is then re-created with the same user principal name (UPN) but a different ID value. When the user tries to reach a site collection or their OneDrive, they present the new ID, but the site still knows them by the old one. Microsoft's separate site user ID mismatch article adds that the UserInfo list of each SharePoint and OneDrive site keeps only the old ID, so the new account is denied access.

A second scenario involves directory synchronization with an Active Directory organizational unit (OU): a user who has already signed in to SharePoint is moved to a different OU and resynced. Other symptoms of the same mismatch, according to Microsoft, include "Access denied" messages and a new OneDrive site with a number or GUID suffix added to the expected URL.

Common causes

  • A user account was deleted and re-created with the same UPN, giving it a new ID.
  • The same delete and re-create happened in on-premises Active Directory and was synced to Microsoft 365.
  • A user who had signed in to SharePoint was moved to a different OU and resynced.

How to fix it

1. Check whether a new UPN exists and restore the original

Microsoft's direct fix in the 0x8004e4d0 article is to check whether a new UPN exists. If it does, delete the new UPN and then restore the original UPN, so the user signs in with the account whose ID the sites already know.

2. Run the Site User Mismatch diagnostic

If you are not comfortable with that procedure, Microsoft points to an automated fix. Sign in to the Microsoft 365 admin center with a SharePoint administrator account and run the Site User ID Mismatch diagnostic from Microsoft's "Fix site user ID mismatch in SharePoint or OneDrive" article. Provide the affected user account and the original OneDrive URL. The diagnostic is not available in GCC High, DoD or Microsoft 365 operated by 21Vianet.

3. Find the original OneDrive URL

To get the URL, sign in to the OneDrive site with an administrator account, select the Settings gear, then OneDrive Settings > More Settings, and copy the OneDrive Web URL from the Diagnostic Information section. Before running the diagnostic for a OneDrive site, make sure the UserName of the new account matches the old one; Microsoft prohibits connecting OneDrive sites that may have been owned by another user account.

4. Let the fix apply, then grant site permissions

The diagnostic can reconnect the user to the original OneDrive site and recycle the new site with the suffix. Microsoft says the OneDrive changes might take about 24 hours. For SharePoint sites that do not belong to the user, the diagnostic offers to remove the old ID; after that, assign the new account the right permissions on the site.

If nothing works

If the SharePoint Administrator role was activated through Privileged Identity Management, Microsoft warns that the permissions can take up to 24 hours to propagate, and the diagnostic might report "No issues found" during that time, so run it again later. Microsoft also states that manually changing the OneDrive site owners or user profile properties does not fix this issue. As a general step to avoid it in future, restore a deleted account instead of creating a new one with the same UPN.

What we checked

Two Microsoft Learn articles were read. "Error 0x8004e4d0 when signing in to OneDrive" gives the exact message, the site user ID mismatch cause with its two scenarios, and the fix of deleting the new UPN and restoring the original, or using the automated fix. "Fix site user ID mismatch in SharePoint or OneDrive" explains the UserInfo list, the diagnostic, the OneDrive URL steps, the 24-hour delays and the PIM caveat. The error was not reproduced for this page.

Last checked: 2026-11-21.

Official sources

Questions people ask

What causes OneDrive error 0x8004e4d0?

Microsoft says it is usually a site user ID mismatch: a user account was deleted and re-created with the same user principal name but a new ID, so the ID stored for the user on the OneDrive or SharePoint site no longer matches.

Can an admin fix it by changing the OneDrive site owner?

No. Microsoft states that administrators can't fix this by manually updating the owners of the OneDrive site or editing the user profile properties. The Site User Mismatch diagnostic is the recommended fix.

How long does the fix take to apply?

Microsoft says that after the diagnostic resolves a OneDrive issue, the changes might take about 24 hours, including pointing the OneDrive tile to the correct site and recycling extra OneDrive sites.

  • 0x8004deef (OneDrive)

    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.

  • 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.

  • 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.

  • 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.

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.