Share via

Share Point and One Drive access

Dragan Krsmanović 20 Reputation points
2026-04-08T10:01:27.4133333+00:00

Dear friends,

I have the following issue. We deleted a Microsoft account from Active Directory (we moved the user out of the sync folder and then moved it back), and we permanently deleted the account from the Deleted users section in the Microsoft 365 admin center using a PowerShell script.

Now, when I try to sign in with that account to OneDrive or any SharePoint site, I receive error messages.

Can somebody please help me with this issue?SharePoint

User's image

Microsoft 365 and Office | SharePoint Server | For business
0 comments No comments

Answer accepted by question author
  1. Jayden-P 19,065 Reputation points Microsoft External Staff Moderator
    2026-04-08T11:01:24.31+00:00

    Please note that our forum is a public platform, and we will modify your question to hide your personal information in the description. Kindly ensure that you hide any personal or organizational information the next time you post an error or other details to protect personal data.

    Hi @Dragan Krsmanović

    May I ask if you use SharePoint Server with Hybrid setup? If yes, are you using SP2016, 2019 or SE?

    From your description, I found an article that describe this behavior. Fix site user ID mismatch in SharePoint or OneDrive - SharePoint | Microsoft Learn

    These issues might also occur during directory synchronization between an Active Directory organizational unit (OU) and SharePoint. If users have already logged in to SharePoint and are later moved to a different OU, they might experience these issues when the OU synchronizes with SharePoint.

    You can check the solution in the article above to resolve this.

    If you simply want to access that account's OneDrive data, you can Grant access to a former user's OneDrive files to another user.

    When you are done, you can now access the deleted account's OneDrive using their OneDrive URL.


    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. Q&A Assist
    2026-04-08T10:01:54.17+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The behavior is caused by a site user ID mismatch between SharePoint/OneDrive and the re‑created account in Microsoft 365/Active Directory.

    When the original account was deleted and then re‑created (even with the same UPN), Microsoft 365 assigned a new internal ID. SharePoint and OneDrive still store the old ID in their UserInfo lists, so when the user signs in, the IDs do not match and access is denied.

    To resolve this:

    1. Verify whether there is a “new” account for the same UPN in Microsoft 365.
    2. If a new UPN exists, delete that new user object from Microsoft 365, and then restore the original user object so that the original ID is preserved. Use the documented steps to delete the new UPN and then restore the original UPN.
    3. If not comfortable performing these manual steps or if the environment involves directory synchronization/OU moves, use the automated fix described in “Fix site user ID mismatch in SharePoint or OneDrive.” This tool/script updates the SharePoint/OneDrive UserInfo data so that it matches the current account ID.

    If the user still cannot access their own OneDrive after the ID mismatch is corrected, follow the “A user can't access their own OneDrive site” guidance in the Access Denied article. For shared links that fail, remove the affected user from the site and then re‑share the content.


    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.