Microsoft Defender for Endpoint
Endpoint protection

Onboarding Notification

In brief

The article now clarifies how to create the notification flow, filter by the `lastSeen` property, prevent duplicate alerts, and apply the one-hour offboarding interval from seven days ago.

What Defender admins need to know

Administrators configuring or reviewing the flow can use the more precise filtering and timing guidance. No mandatory action is stated.

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.

Create the notification flow

Perform the following steps to create the notification flow in Power Automate:

  1. Go to the Power Automate portal and sign in.

  2. Navigate to My flows > New > Scheduled - from blank.

    :::image type="content" source="media/build-flow.png" alt-text="The notification flow" lightbox="media/build-flow.png":::

  3. Select the + button to add a new action. The newThis action isadds an HTTP request to the Defender for Endpoint devices API. You can also replace it with the out-of-the-box WDATP Connector (action: Machines - Get list of machines).

    :::image type="content" source="media/recurrence-add.png" alt-text="The recurrence and add action" lightbox="media/recurrence-add.png":::

Use the following tips when configuring the notification flow:

  • YouIn the device query, you can filter hereby using the lastSeen property only:
    • Every 60 min:

      • Take all devices last seen in the past seven days.
    • If last seen property is on the one hour interval of [-7 days, -7days + 60 minutes] -> Alert for offboarding possibility.

    • If first seen is on the past hour -> Alert for onboarding.

InWith this solution, you don't havefiltering approach, duplicate alerts.alerts are not generated.

There are tenants that have numerous devices. Getting all those devices might require paging.

You can split the device lookup into two queries:

  1. For offboardingoffboarding, take only thisthe one-hour interval of [-7 days, -7 days + 60 minutes] using the OData $filter and only notify if the conditions are met.

  2. Take all devices last seen in the past hour and check first seen property for them (if the first seen property is onwithin the past hour, the last seen must also be there too)within the same past-hour window).