Sending multimedia content and documents within chat conversations in Microsoft Teams
Dear @Cole Vivienne
If customer support agent said that the issue stems from a user identity mismatch or duplication within your Azure AD (Entra ID) tenant or the SharePoint User Profile Service (UPS), the following occurs: when a user's email address or Principal Name is reused or duplicated, Teams creates a OneDrive folder for 1:1 or group chats linked to a duplicate SharePoint Security Identifier (SID). Consequently, although file access permissions appear correct in the user interface, the recipient's identity points to a different account instance at the system level, resulting in an "Access Denied" error.
Here is the step-by-step solution to resolve this core issue:
Step 1: Check and Remove Duplicate Entities in Azure AD / Entra ID
- Open the Microsoft 365 Admin Center > Microsoft Entra admin center and go to Identity > Users > All users.
- Search for both the sender’s and receiver’s email address/User Principal Name (UPN).
- Check Deleted users to ensure there are no lingering soft-deleted duplicate accounts with the same email address. If found, permanently delete the stale object.
Step 2: Clear Teams Client Cache (Workaround for End Users)
Ask both users to clear their local Teams client cache so identity tokens refresh properly:
- Fully close Microsoft Teams (right-click the tray icon and select Quit).
- Press Win + R, type %appdata%\Microsoft\Teams, and delete all files in that folder (or
%localappdata%\Packages\MSTeams_8wekyb3d8bbwefor new Teams). - Restart Teams and re-share the file.
Please refer to this document: Clear the Teams client cache
Step 3: Clear Stale User Profiles in SharePoint Online If the identity was recently re-created, SharePoint Online may still retain the old User Info List entry:
As a SharePoint Administrator, open the SharePoint Online Management Shell. Please refer to this document for step by step code: Remove-SPOUser
Connect to your tenant admin service:
Connect-SPOService -Url https://<yourtenant>-admin.sharepoint.com
Run Get-SPOUser to inspect the user account's PUID/SID across the affected chat site/OneDrive.
If a duplicate or orphaned profile exists, remove the stale user profile from the site collection using:
Remove-SPOUser -Site https://<yourtenant>-my.sharepoint.com/personal/<user_folder> -LoginName <user_UPN>
For detailed official guidance on fixing identity synchronization and profile mismatches in SharePoint/Teams, you can refer to Microsoft's official documentation: Fix site user ID mismatch in SharePoint or OneDrive.
Please let me know if this helps resolve the error or if you need assistance with specific PowerShell commands.
If the answer is helpful, please click "Yes" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in the forum document to enable e-mail notifications if you want to receive the related email notification for this thread.