← Conditional Access Series
Microsoft Entra ID · Conditional Access Series · Part 06

How to block file downloads on unmanaged devices using Conditional Access and Defender for Cloud Apps

Restrict downloads in supported browser sessions using device filters and Defender for Cloud Apps.

Why this matters

Staff may need corporate resources from personal computers, client-managed virtual desktops or other devices outside the organisation’s security boundary. Downloaded documents can then remain on systems where corporate retention, endpoint protection and data-loss controls may not apply.

A blanket access block may disrupt legitimate work. This guide uses Conditional Access and Defender for Cloud Apps to restrict downloads in supported browser sessions while allowing approved access. It reduces local file exposure rather than eliminating every possible exfiltration path.

PRACTICAL WALKTHROUGH · PART 06 OF 06

What you'll accomplish

Restrict downloads in supported browser sessions using device filters and Defender for Cloud Apps.

Microsoft Entra Conditional Access Series

A complete access block can disrupt staff working on personal devices or third-party virtual desktops. Session-level controls can permit supported browser access while restricting file downloads. The goal is to reduce local copies of corporate data outside the managed security boundary, not to block every possible exfiltration path.

1. Prerequisites and inspect device/application coverage

Ensure Entra ID P1 or equivalent, Defender for Cloud Apps licensing, appropriate CA and Cloud Apps administrative roles, supported applications and test devices. Review Intune/Entra ownership, compliance and management signals; inventory browser and native client workflows. Confirm application onboarding and emergency access. Intune is relevant when compliance is part of the design, not a substitute for Defender for Cloud Apps.

Ownership is not compliance. A company-owned non-compliant machine is still Company; a personally owned device may be compliant. A client-managed VDI may have no device identity in the resource tenant.

2. Configure the policy

Navigate to Entra ID > Conditional Access > Policies > New policy.

Configuration captures show a newer Microsoft Entra portal interface, with sensitive details removed. They illustrate the settings, not proof of a successful deployment or a January 2025 capture.

  1. Name: Block downloads from unmanaged devices.
  2. Users: select a pilot group initially; the supplied captures show All users. Define only documented exceptions.
  3. Target resources: the demonstrated configuration targets All resources. Start with validated applications, such as supported SharePoint/OneDrive sessions. All resources does not make unsupported apps compatible.
  4. Conditions > Filter for devices: Configure Yes, Include filtered devices in policy. Select DeviceOwnership, Not equals, Company. Confirm the rule:
    device.deviceOwnership -ne "Company"
    Select Done. Negative comparisons can match unregistered devices whose attributes are null.
    Device filter includes devices where ownership is not Company
    Figure 1. Device filter includes devices where ownership is not Company. Open full-size image
  5. Session: Use Conditional Access App Control > Block downloads. The capture labels the option Preview. Select the session control; do not choose Block access if the objective is to retain browser access. Other applicable authentication controls still apply.
    Conditional Access App Control: Block downloads (Preview in this capture)
    Figure 2. Conditional Access App Control: Block downloads (Preview in this capture). Open full-size image
  6. State: Report-only. The last capture shows a warning about device platforms and a selected exclusion option; it does not establish what was saved. Check the final policy scope directly. Report-only does not actually prevent file downloads; a controlled enforced pilot is required.
    Report-only platform warning; final exclusions and enforcement are not established
    Figure 3. Report-only platform warning; final exclusions and enforcement are not established. Open full-size image

3. Select the correct device boundary

DeviceNon-company ownership ruleNon-compliance rule
Company, compliantOutsideOutside
Company, non-compliantOutsideIn scope
Personal, compliantIn scopeOutside
Personal, non-compliantIn scopeIn scope
Unregistered/no attributesIn scopeIn scope

Compare these rules in a pilot:

text
device.deviceOwnership -ne "Company"
device.isCompliant -ne "True"
(device.deviceOwnership -ne "Company") -or (device.isCompliant -ne "True")

The combined expression targets devices that fail either condition. Verify syntax in the Entra rule builder and review which device signals the client actually presents. A browser lacking device identity may be treated differently from the same registered endpoint using a supported browser.

4. Configure additional application controls

In the Defender portal, review Cloud Apps > Policies and Conditional Access App Control app onboarding. For more granular needs, choose Use custom policy in Entra and create an applicable session policy in Defender for Cloud Apps. Select supported apps, activities and file conditions; for example, apply download blocking for sensitive files and notify users as appropriate. Validate supported browser behavior, including Edge in-browser protection or reverse proxy as applicable. This is different from the separate SharePoint app-enforced restrictions feature.

Browser restrictions do not automatically restrict native clients. Evaluate complementary access policies that prevent unsupported native downloads or sync on devices outside the boundary, or Intune app protection where applicable. Test Teams, Outlook and OneDrive native behavior separately. Do not assume every app has the same feature coverage.

5. Validate with synthetic documents

ScenarioExpected result when enforced and supported
Company-owned deviceOwnership rule does not apply
Personal or unregistered deviceRestricted browser session
Attempt protected downloadBlocked in supported session
Document previewMay work; test PDF and embedded attachments
Company-owned non-compliant deviceOwnership rule alone does not restrict
Native clientRequires separately validated protection
Report-only policyNo actual download enforcement

Test browser access, previews, editing, download, print and sync independently. Review actual session events in Defender for Cloud Apps; Entra's policy result is insufficient proof that a download was blocked.

6. Review exceptions for third-party work

Capture business need, engagement owner, affected users, device environment, required applications, data classification, approval and expiry. A user-based exclusion may remove the restriction across all devices in scope, not just the client VM. Prefer narrow, time-limited exceptions and compensating controls. Confirm user experience with the service desk.

7. Monitor policy coverage

Review the individual Conditional Access policy evaluation for interactive sign-in records. Replace the placeholder with the policy ID.

kusto
let PolicyId = "<replace-with-policy-guid>";
SigninLogs
| where TimeGenerated >= ago(30d)
| mv-expand Policy = todynamic(ConditionalAccessPolicies)
| where tostring(Policy.id) =~ PolicyId
| summarize Events = count(), AffectedUsers = dcount(UserPrincipalName)
    by PolicyResult = tostring(Policy.result), AppDisplayName
| order by Events desc

This query reports policy evaluation only. It cannot establish device ownership or show whether a download was blocked. Verify the ownership attribute directly in Entra/Intune, check the session and activity records in Defender for Cloud Apps, and perform an enforced pilot with synthetic documents. The ownership filter and device compliance are different conditions, so compliance-only sign-in queries are not a substitute for validation of this policy. The query fields and KQL constructs were checked against the linked Microsoft documentation on 30 November 2026. These examples have not been executed against a live workspace. Use a workspace containing the required diagnostic tables, with sufficient retention and appropriate read permissions.

8. Troubleshooting, limitations and rollback

If downloads work unexpectedly, check enforcement state, matching device filter, app onboarding and browser support; inspect session activity. If corporate users are restricted, verify ownership and whether the client presents device identity. If preview fails, check whether the app triggers a background download. Screenshots, photography and other data paths remain possible; complement with Purview labels/encryption, DLP, native-client controls and endpoint protection.

Roll out in stages: report-only, scoped enforced pilot, app/device test matrix, exception review, then wider deployment. In an approved rollback, return the new CA policy to Report-only or Off and validate fresh sessions; assess dependent Defender for Cloud Apps and native access policies separately. Preserve MFA and other protections. Do not claim full data loss prevention or historical enforcement from these screenshots.

References

Continue the series

All six Conditional Access guides

← Part 05: Require secure password changes for risky users