A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Dear @Ganesh A Pawar,
I understand that you’re unable to access files shared via Microsoft Teams / OneDrive, and the issue occurs in both the Teams client and a web browser. When opening shared files, you see the error: “There is a legacy user account in this site with same email.”
To better assistance, could you please confirm following information:
Was the affected user previously deleted and re-created (rehire scenario) or had a UPN/email rename recently?
Is your environment cloud-only or hybrid (directory sync/Entra Connect)?
Does the issue occur across multiple Teams/sites, or is it limited to one Team/one SharePoint site/one OneDrive location?
Are users opening the shared content while signed in with the same work account that received the share (not a secondary account)?
Are you in a specialized cloud (e.g., GCC High/DoD/21Vianet)?
In the meantime, I recommend running Microsoft’s “Site User ID Mismatch” diagnostic
Microsoft provides a supported diagnostic specifically to address cases where a user was deleted/recreated (or identity changed) and SharePoint/OneDrive still holds the old internal ID in the site’s UserInfo cache, resulting in access issues.
- If the issue is tied to a OneDrive site, changes may take up to 24 hours to fully propagate after the diagnostic completes.
- Note: This diagnostic is not available in certain sovereign clouds (e.g., GCC High/DoD/21Vianet).
For more detail: Fix site user ID mismatch in SharePoint or OneDrive
Note: As moderators, my primary goal is to provide helpful guidance and support through general troubleshooting steps. While I don’t have access to internal systems or administrative tools required to resolve account-specific or backend issues, I truly appreciate your understanding of these limitations. I genuinely hope the information I share helps guide you in the right direction, and I'm always here to assist as much as I can within my scope.
Please understand that initial response does not always resolve the issue immediately. However, with your help and more detailed information, we can work together to find a solution.
Your detailed response will help diagnose and investigate the issue more efficiently. If I misunderstood what you’re looking for, feel free to let me know or share a screenshot. I’d be happy to help further!
Thank you for your cooperation. I'm looking forward for your reply.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.