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.