MS Teams Block Download and Upload Outside Network

Cathryn A. Eggers 0 Reputation points
2023-09-27T16:26:31.4733333+00:00

I have a unique scenario where we want users to be able to utilize the MS Teams desktop app with no restriction while logged into our LAN, but when off the LAN (using a personal desktop, laptop, phone, tablet, ect...) not be able to upload or download files (including if they are on the web browser).

Is this possible to do? I have looked at several different Conditional Access policies and they either completely block outside our network, or don't seem to work at all. Defender for cloud apps blocks all file access internal and external when set up for teams.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,152 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,278 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Julian Sperling 451 Reputation points
    2023-09-27T18:42:32.59+00:00

    This should work by using the app Enforced Restrictions Session Control in Conditional Access - If you Define One Policy With that setting and Exclude the IP Address of your LAN Breakout (remember, Entra ID / Azure AD does not see your internal IP Range) the configured Restrictions Apply.

    Only setting the checkmark in conditional Access is not enough, the Application that is supposed to Enforce the Restrictions also has to know what restrictions to apply.

    Since you want to Restrict Files you would have to configure SharePoint how to Handle unmanaged Devices - https://learn.microsoft.com/en-us/sharepoint/control-access-from-unmanaged-devices#advanced-configurations - Scoping only for Teams requires you to create your own automations to detect and apply the Restrictions through PowerShell.

    I don't know by heart how Uploads are handled, but hopefully this gives you something to try.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.