A Microsoft file hosting and synchronization service.
The most likely causes are:
- Limited-access user permission lockdown mode is enabled on the OneDrive site. This can block access even when the file appears to be shared correctly. This is a known cause for the Teams/OneDrive error "You don't have access to this file".
- Open the owner’s OneDrive site.
- Select Settings > OneDrive Settings > More Settings.
- Under Features and storage, select Site Collection Features.
- Find Limited-access user permission lockdown mode and select Deactivate.
- Microsoft recommends not enabling this feature on OneDrive sites.
- The recipient is opening the link with a different account than the one that was granted access. This commonly causes errors such as:
- You don't have permission to access this item
- This link is not available to you In that case, the recipient must open the link while signed in with the exact account that received the sharing invitation.
- The user’s permissions on the site or file are not actually effective even if the sharing dialog shows access.
- In the OneDrive site, go to Settings > Site Settings > Site permissions.
- In the ribbon, select Check Permissions.
- Enter the colleague’s name and select Check Now.
- If the permissions are missing or incorrect, grant access again to the file or site.
- If the error continues, remove the user from the site and then grant permissions again.
- If this is a folder-sharing scenario, Limited Access can fail when Limited-access user permission lockdown mode is enabled. In that case, use one of these workarounds:
- Share individual files instead of the folder.
- Share the whole site collection or subsite.
- Disable Limited-access user permission lockdown mode if the site does not require it.
- If the file is being shared externally, verify that external sharing is allowed at both the organization and site level.
- In admin.microsoft.com, go to Admin centers > SharePoint > Policies > Sharing.
- Confirm the SharePoint and OneDrive sharing level allows external sharing.
- Then check the specific SharePoint site or OneDrive sharing settings and make sure they allow New and existing guests or Anyone, as appropriate.
If Microsoft 365 admin access is available, run the Check User Access diagnostic or the Teams file-access diagnostic in the Microsoft 365 admin center. These diagnostics can verify common access problems for SharePoint, OneDrive, and Teams-shared files.
References:
- Error when opening a file in Teams: You don't have access to this file
- Access Denied or You need permission errors in SharePoint Online and OneDrive
- "Access Denied" error when trying to access a shared folder
- Sharing options are greyed out when sharing from SharePoint Online or OneDrive
- "Your organization's policies do not allow you to share with these users" error when sharing an item or site in SharePoint Online or OneDrive for Business