Microsoft Defender for Cloud Apps
Cloud and workloads

File policies in Microsoft Defender for Cloud Apps

In brief

The article now uses clearer file-policy terminology, adds updated limitation structure and screenshot text, and directs administrators to Policies > Policy management in the Microsoft Defender portal to review violations.

What Defender admins need to know

Administrators can use the updated navigation and clearer guidance when configuring and reviewing file policies.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

Policies

The Defender for Cloud Apps content inspection engine combines three aspects under each policy:

  • Content scan based on preset templates or custom expressions.
  1. Select Create policy and select File policy.

    Screenshot of the Information Protection tab in Policy management showing the Create policy option for file policies.

  2. Give your policy a name and description. You can also base it on a template. For more information about policy templates, see Control cloud apps with policies.

  3. Assign a Policy severity to your policy. If Defender for Cloud Apps is configured to send notifications based on a specific policy severity level, this level determines whether matches for the policy trigger a notification.

  4. Select a Category and link the policy to the most appropriate risk type. The Category field is informative only and helps you search for specific policies and alerts later, based on risk type. The risk type might already be preselected according to the category for which you chose to create the policy. By default, File policies are set to DLP.

  5. Create a filter for the files this policy will act on to set which discovered apps trigger this policy. Narrow down the policy filters until you reach an accurate set of files you wish to act upon. Be as restrictive as possible to avoid false positives. For example, if you wish to remove public permissions, remember to add the Public filter, if you wish to remove an external user, use the "Access level filter and select External" filter, and so on.

  1. To view file policy matches, go to Policies -> Policy management. Here you can see files that are suspected to violate the policy. Filter the results to display only the file policies using the Type filter at the top. For more information about the matches for each policy, under the Count column, select the number of matches for a policy. Alternatively, select the three dots at the end of the row for a policy and choose View all matches. Selecting View all matches opens the File policy report. Select the Matching now tab to see files that currently match the policy. Select the History tab to see a history back to up to six months of files that matched the policy.

File policy limitations

  • You're limited to 50 file policies in Defender for Cloud Apps.

File policy reference

The following sections provide explanations for each policy type and the fields that can be configured for each policy.

A File policy is an API-based policy that enables you to control your organization's content in the cloud, taking into account over 20 file metadata filters (including owner and sharing level) and content inspection results. Based on the policy results, governance actions can be applied. The content inspection engine can be extended via 3rd-party DLP engines and anti-malware solutions.

View file policy results

Go to Policies > Policy management in the Microsoft Defender Portal to review file policy violations.

  1. In the Microsoft Defender Portal, under Cloud Apps, go to Policies -> Policy management, and then select the Information protection tab.

File filters allow you to apply specific criteria to your file policies and focus on files that meet conditions such as file type, access level, and share status. File filters support file types such as PDF, Office files, RTF, HTML, and code files.

The following file filters can be applied to file policies:

:::image type="content" source="media/file-policies/screenshot-showing-different-file-types.png" alt-text="Screenshot showing different file types" lightbox="media/file-policies/screenshot-showing-different-file-types.png":::

  • Owner OU – Include or exclude file owners that belong to certain organizational units. For example, all public files except files shared by EMEA_marketing. Applies only to files stored in Google Drive.

  • Parent folder – Include or exclude a specific folder (doesn't apply to subfolders). For example, all publicly shared files except for files in a specified folder.

To authorize files

To authorize a file, complete the following steps:

  1. In the Microsoft Defender Portal, under Cloud Apps, select Policies -> Policy management. Select the Information protection tab.
  2. In the list of policies, on the row in which the policy that triggered the investigation appears, in the Count column, select the matches link.