

This is a site collection feature that helps prevent anonymous users from accessing application pages that are mostly helpful on classic, publishing-based SharePoint sites. This issue occurs because the Limited-access user permission lockdown mode feature is activated on your OneDrive site. When the other user tries to open the file in Teams, the following error message is displayed: Then, the file is automatically stored on your OneDrive site. In Microsoft Teams, you share a file with another user in a chat window. Applies to: Microsoft OneDrive for Business, Microsoft Teams.Error when opening a file in Teams: You don't have access to this file
