Disable file content previews in Teams chats and channels

Steve White 20 Reputation points
2025-11-18T14:11:37.0633333+00:00

When we paste links to SharePoint files within Teams chats/channels, there is a preview of the file contents. The preview does not honor the access controls set on the SharePoint files, meaning whoever can see the chat, can see the preview content, even if they do not have access to open the link. We need to disable this automatic preview content.

I have tried disabling the "URL previews" feature under the Teams admin center -> Messaging -> Messaging policies -> Global (Org-wide default). We do not have any other assigned policies, so the org-wide default configuration should be applying to all users. Yet, the previews continue to appear even after waiting several days and signing out & in to Teams.

How can we disable these previews?

Microsoft Teams | Microsoft Teams for business | Teams and channels | Other
0 comments No comments
{count} votes

Answer accepted by question author
  1. Vicky-I 6,210 Reputation points Microsoft External Staff Moderator
    2025-11-18T15:40:04.4833333+00:00

    Hello @Steve White,

    Thank you for reaching out to Microsoft Q&A Forum!

    Let me clarify a little:

    Microsoft Teams automatically generates previews for supported file types (Office documents, PDFs, images) when links are shared in chats or channels.

    These previews are rendered by backend services and may not fully honor SharePoint permissions, although access controls apply when opening the actual file. Disabling “URL previews” in Teams Admin Center > Messaging Policies > Global (Org-wide default) only affects web links, not SharePoint or OneDrive file previews.

    Currently, there is no direct policy to completely disable file previews in Teams. However, you can consider the following:

    1. Apply Sensitivity Labels or Encryption Files protected with Microsoft Information Protection labels (e.g., “Do Not Forward”) will prevent Teams from rendering previews.
    2. Encourage users to share files using cloud attachments with specific permissions rather than pasting links in chats.
    3. Use PowerShell to review messaging policies (Get-CsTeamsMessagingPolicy). If Microsoft introduces a property like AllowFilePreview, you can configure it via Set-CsTeamsMessagingPolicy. (For more detail)
    4. Workaround for Users: Use Ctrl+K to insert hyperlinks instead of pasting raw URLs; this prevents previews.

    In the future, you can also consider:

    • Apply Microsoft Information Protection sensitivity labels or encryption; protected files won’t render previews.
    • Encourage sharing files as cloud attachments with specific permissions.
    • Submit feedback to Microsoft via this link: https://feedbackportal.microsoft.com/feedback

    I'm so sorry for there is no current setting to disable file previews entirely. I will try to research and can suggest the above alternatives, you can try and let me know the results if there are any problem.


    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. 


2 additional answers

Sort by: Most helpful
  1. Q&A Assist
    2025-11-18T14:11:54.0233333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To disable file content previews in Teams chats and channels, you have already taken the correct step by disabling the "URL previews" feature in the Teams admin center under Messaging policies. However, if the previews are still appearing, it may be due to a few reasons:

    1. Policy Propagation: Sometimes, changes in policies can take time to propagate across all users. Although you mentioned waiting several days, ensure that all users are indeed under the Global (Org-wide default) policy and that there are no conflicting custom policies assigned.
    2. User Sign-Out: Ensure that all users have signed out and back into Teams after the policy change. This refreshes their settings and applies the new policies.
    3. Client Version: Check if all users are using the latest version of the Teams client. Outdated clients may not reflect the latest policy changes.
    4. Testing with Different Accounts: If possible, test with different user accounts to see if the issue is consistent across all users or specific to certain accounts.

    If the issue persists after these checks, consider reaching out to Microsoft support for further assistance, as there may be a backend issue that needs addressing.


    References:

    0 comments No comments

  2. Steve White 20 Reputation points
    2025-11-20T12:44:33.33+00:00

    Hi @Vicky-I,

    Thanks for all your help. I'm going to have to investigate the Information Protection options at a later date. I accept your answer.


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.