How to Set Alert Policies in Microsoft Defender Portal

One of my clients wanted to keep track of what was happening with their files and folders in Microsoft 365. They wanted to monitor who was sharing files internally and externally, when someone downloaded important files, and whenever a new sharing link was created for a document or folder. This helps them make sure sensitive information isn’t shared outside the company by mistake.

For all these activities, Microsoft Defender Alert Policies provide a better solution. With these built-in policies, you can automatically receive alerts whenever important actions, such as sharing, downloading, or link creation, occur in your organisation.

In this tutorial, I’ll show you how to create alert policies in the Microsoft Defender Portal.

Set Alert Policies in Microsoft Defender Portal

In this example, I will show when we will share a file with an external user; this alert will trigger and send an email.

Follow the steps below to create an alert policy:

  1. Go to Microsoft Defender. Sign in with your Microsoft 365 admin credentials. From the left navigation menu, expand Email & Collaboration, then click Policies & Rules, and click Alert Policies.
Alert policies in the Microsoft Defender portal
  1. Then you will see a list of all existing alert policies in your tenant.
ALERT POLICIES IN MICROSOFT 365
  1. Click + New Alert Policy to open the Create Alert Policy wizard, where you can define your monitoring rules.
How to set up alert policies in the Compliance Center
  1. Here, we need to give our policy a Name (External File Sharing Alert) and add a short description to explain what this policy will track. Next, set the Severity level based on the alert’s importance. Then select a Category based on the type of activity you want to monitor. Finally, click Next.
How to Set Up Defender for Office 365

After setting the name, description, severity, and category, the next step is to choose what actions you want to track. This is important because it tells Microsoft Defender what events should trigger an alert.

You can monitor activities like:

  • Shared file externally – triggers an alert when someone shares a file with an external user.
  • Downloaded file – triggers an alert when someone downloads files from SharePoint or OneDrive.
  • Created or modified sharing link – triggers an alert whenever a new sharing link is created or changed.

You can also apply filters to the alert:

  • Monitor only specific users or groups.
  • Track certain file types (like PDFs or sensitive documents).
  • Limit the alert to specific sites, folders, or document libraries.
  1. For this example, I selected the activity Shared file externally and did not apply any additional conditions. However, if you want, you can limit it to a specific site by adding the site collection URL in the conditions section.
  2. In my case, I want to be notified every time someone shares a file with an external user, so I selected the option “Every time an activity matches the rule”.
Microsoft 365 How to enable Alert Policies
  1. Then check the Opt-in for email notifications, enter the email recipients, and, if you want, set the Daily notification limit. Click Next.
How to Tune Alerts in Microsoft 365 Defender
  1. Finally, you can review the settings and enable the alert policy immediately by clicking Finish.
Create a Microsoft Defender for Endpoint Alerts Policy
  1. Now you can see the policy created, and it will be part of a table where the other alert policies are stored.
How to Set Up Alerts in Exchange Online

Now, whenever someone shares a file with an external user, the specified recipients will receive an email notification.

How to Set Alert Policies in Microsoft Defender Portal

I hope you found this article helpful. With Microsoft Defender Alert Policies, you can easily monitor critical activities in your organisation, such as when a file is shared with an external user. By setting up these alerts, you can stay informed in real time and ensure sensitive information remains secure.

Also, you may like some more SharePoint tutorials:

Live Webinar

Build an IT Help Desk App using Power Apps and Power Automate

Join this free live session and learn how to build a fully functional IT Help Desk application using Power Apps and Power Automate—step by step.

📅 29th Apr 2026 – 10:00 AM EST | 7:30 PM IST

Download User registration canvas app

DOWNLOAD USER REGISTRATION POWER APPS CANVAS APP

Download a fully functional Power Apps Canvas App (with Power Automate): User Registration App

Power Platform Tutorial

FREE Power Platform Tutorial PDF

Download 135+ Pages FREE PDF on Microsoft Power Platform Tutorial. Learn Now…