Forum Discussion

Falis's avatar
Falis
Copper Contributor
Dec 03, 2026

Unable to send files protected with user-defined permissions in Microsoft Teams

Hello everyone,

We are experiencing an issue when sharing an Excel file protected by a Microsoft Purview sensitivity label configured with user-defined permissions (UDP).

When attaching the file directly to a Microsoft Teams one-to-one chat, the message fails to send. However, files protected by sensitivity labels with administrator-defined permissions can be sent successfully to the same recipient.

We have confirmed the following:

  • I personally applied the UDP sensitivity label and explicitly granted the recipient permission to edit the document.
  • The issue occurs in both the Teams desktop client and Teams for the web.
  • The same protected file can be uploaded successfully to OneDrive through a browser.
  • Sensitivity label integration for SharePoint and OneDrive is enabled (EnableAIPIntegration = True).
  • Manually sharing the same file with the same recipient through OneDrive succeeds.
  • After manually sharing the file, its link can be pasted into the Teams chat and sent successfully.

The difference we currently observe is that directly attaching the UDP-protected file in Teams fails, while manually sharing it through OneDrive and sending the link works. 

Has anyone experienced similar behavior? Is direct attachment sharing of UDP-protected Office files in Teams supported, and are there any additional settings or known limitations we should check?

Thank you.

3 Replies

  • I can send messages with UDP file attached just fine, but I do get a info bar saying "The recipient can’t access this item", and a button to Give access. Checking the file itself after sending the message shows no sharing permissions were adjusted.

    Does your tenant have the "hero link" functionality enabled?

    • Falis's avatar
      Falis
      Copper Contributor

      Thanks, Vasil — appreciate the pointer.

      Hero link is not enabled in our tenant. The OneDrive Share dialog still shows the legacy layout, with no "File access settings" section. Interestingly, Get-SPOSite already returns DefaultMainLinkScope = OnlyPeopleAdded, so that property alone doesn't indicate whether the new experience is live.

      A network trace from Teams web shows:

      • driveItem/invite (with Prefer: ReturnSpecificErrorCode,getDefaultLink) returns 403 accessDenied.
      • Just before that, the item's sharing abilities report all link types (anyone / organization / specific people) disabled, with disabledReason: DocumentIsUdpProtected, while direct sharing to internal users is still enabled.
  • Based on your testing, this looks more like a Microsoft Teams limitation or compatibility issue with Purview user-defined permissions (UDP) than a problem with the recipient's access rights.

     

    The important distinction is:

     

    - Administrator-defined permissions: Teams can generally process the file using centrally configured access rights.

    - User-defined permissions (UDP): The file carries permissions assigned by its owner, which may not be handled correctly by Teams' direct attachment/upload workflow.

     

    Your successful OneDrive upload and subsequent link sharing strongly suggest that the file encryption and recipient permissions are valid.

     

    What I recommend checking

     

    1. Confirm the recipient has a valid Microsoft 365 identity and the correct Rights Management permissions.

    2. Check whether the UDP label uses standard Azure Rights Management encryption rather than Double Key Encryption (DKE).

    3. Review Purview audit logs and Teams upload errors for permission-validation failures.

    4. Test with a newly created UDP-protected Excel file.

    5. Check Microsoft 365 service health and raise a support ticket if the issue persists.

     

    Best workaround: Continue sharing through OneDrive and pasting the generated link into Teams. This preserves the file's protection and avoids the failing direct-attachment workflow.

     

    Microsoft documentation: [Teams file sharing and permissions](<https://support.microsoft.com/en-us/teams/chat/send-a-file-picture-or-link-in-microsoft-teams?utm_source=chatgpt.com>).

     

    I wouldn't assume direct UDP attachment is universally unsupported without Microsoft confirming the specific limitation for your tenant and configuration.