---
title: "Microsoft Entra ID"
description: "Add a Microsoft Entra ID monitoring plan in Netwrix Auditor, set data source options, and add a tenant item with modern or basic authentication."
sidebar_position: 60
---

# Microsoft Entra ID

**NOTE:** Before configuring your monitoring plan, read the following topics and complete
their instructions:

- [Protocols and Ports Required](/docs/auditor/10.9/requirements/ports.md) – To ensure successful data
  collection and activity monitoring configure necessary protocols and ports for inbound and
  outbound connections
- [Data Collecting Account](/docs/auditor/10.9/configuration/monitoring-plans/dataaccounts.md) – Configure data collecting accounts as required to
  audit your IT systems

- [Microsoft Entra ID](/docs/auditor/10.9/configuration/microsoft365/microsoftentraid/overview.md) – Configure
  data source as required to be monitored

You can use the following data collecting account options:

- Username and password.
- Integration with the Netwrix Privilege Secure. See the
  [Netwrix Privilege Secure](/docs/auditor/10.9/admin/settings/privilegesecure.md) and How to Add Microsoft Entra ID
  Monitoring Plan Using Netwrix Privilege Secure topics for additional information.
- Application and secret for Microsoft 365 with modern authentication.

To add a new monitoring plan for Entra ID, you need to launch the New Monitoring Plan wizard, either
from the Home screen, or from the Monitoring plans menu under the All Monitoring Plans section.

## Configure Data Source Settings

The New Monitoring Plan wizard configures default data source settings when you complete it.
To customize the settings, open your monitoring plan and click **Edit data
source** on the right side of the screen.

Complete the following fields:

| Option                                             | Description                                                                                                                                                                                                                                           |
| -------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Monitor this data source and collect activity data | Enable monitoring of the selected data source and configure Auditor to collect and store audit data.                                                                                                                                                  |
| Monitor Microsoft Entra ID logon activity          | Specify what types of logon events you want to monitor: successful or failed, performed through Windows and SQL authentication. - Failed logons - Successful logons                                                                                   |
| Collect data for state-in-time reports             | Configure Netwrix Auditor to store daily snapshots of your system configuration required for further state-in-time reports generation. See the [State–In–Time Reports](/docs/auditor/10.9/admin/reports/types/stateintime/overview.md) topic for additional information. |

Review your data source settings and click **Add** to go back to your plan. The newly created data
source will appear in the **Data source** list. As a next step, click **Add item** to specify an
object for monitoring. See the
[Add Items for Monitoring](/docs/auditor/10.9/configuration/monitoring-plans/datasources.md#add-items-for-monitoring) topic for additional
information.

This instruction shows how to collect audit data from the Microsoft 365 tenant.

If you plan to use modern authentication, see the
[Configuring Microsoft Entra ID App for Auditing Microsoft Entra ID](/docs/auditor/10.9/configuration/microsoft365/microsoftentraid/permissions/modernauth/modernauth.md#configuring-microsoft-entra-id-app-for-auditing-microsoft-entra-id)
topic for additional information on how to prepare Microsoft Entra ID app with required permissions.
Ensure you have the following at hand:

- Tenant name
- For modern authentication: Application (client) ID
- Application secret
- For basic authentication: User name and password

The type of data Netwrix Auditor can collect from the Microsoft 365 tenant depends on the
authentication option you choose.

## Configure Office 365 Tenant as a Monitored Item

**Step 1 –** On the **General** page of the item properties, specify **Tenant name**:

- If you are going to use **Basic authentication**, you can proceed to the next step – **Tenant
  name** will be filled in automatically after it.

:::note
Basic authentication is no longer possible for Exchange Online. For already existing tenants, basic authentication is still available for SharePoint Online and Microsoft Entra ID monitoring.
:::

- If you are going to use **Modern authentication**, paste the obtained name. See the
  [Using Modern Authentication with Microsoft Entra ID](/docs/auditor/10.9/configuration/microsoft365/microsoftentraid/permissions/modernauth/modernauth.md)
  topic for additional information.

![tenantenvironment](/images/auditor/10.9/admin/monitoringplans/tenantenvironment.webp)

If you are using a government tenant, click the **Tenant Environment** tab and select the
desired tenant environment.

**Step 2 –** Select authentication method that will be used when accessing Office 365 services:

- Basic authentication:

    - Selected, Office 365 organization will be accessed on behalf of the user you specify.
    - Enter **User name** and **password**; use any of the following formats: _user@domain.com_ or
      _user@domain.onmicrosoft.com_.
    - The **Tenant name** field then will be filled in automatically.
    - Ensure this user account has sufficient access rights. See
      [Using Basic Authentication with Microsoft Entra ID](/docs/auditor/10.9/configuration/microsoft365/microsoftentraid/permissions/basicauth.md)
      topic for additional information.

- Modern authentication:

    - Selected, Office 365 organization will be accessed using the Microsoft Entra ID (formerly
      Azure AD) app you prepared. Enter:

        - **Application ID**;

            - **Application secret**.

    - See the
      [Using Modern Authentication with Microsoft Entra ID](/docs/auditor/10.9/configuration/microsoft365/microsoftentraid/permissions/modernauth/modernauth.md)
      for additional information.

**Step 3 –** Click the **Add** button.

![Add Office 365 Item window](/images/auditor/10.9/admin/monitoringplans/item_o365_basic_auth_thumb_0_0.webp)

You can use a single account to collect audit data for different Office 365 services (Microsoft
Entra ID, Exchange Online, SharePoint Online); however, Netwrix recommends that you specify
individual credentials for each of them.

## How to Add Microsoft Entra ID Monitoring Plan Using Netwrix Privilege Secure

**NOTE:** Netwrix Privilege Secure resource-based integration works only with basic authentication.
Ephemeral accounts will be created or elevated to be used as data collecting accounts. If you want
to use modern authentication and the Netwrix Privilege Secure integration, you need to choose a
credential-based access policy, save your application and secret in Netwrix Privilege Secure, and
provide the Application ID instead of the user name.

Starting with version 10.7, you can use Netwrix Privilege Secure to manage the account for
collecting data, after configuring the integration. See the
[Netwrix Privilege Secure](/docs/auditor/10.9/admin/settings/privilegesecure.md) topic for additional information about
integration and supported data sources. In this case, the credentials will not be stored by Netwrix
Auditor. Instead, they will be managed by Netwrix Privilege Secure and provided on demand. This lets you use
password rotation or temporary accounts for data collection.

To use Netwrix Privilege Secure as an account for data collection, complete the following steps.

**Step 1 –** Select the item you want to configure.

**Step 2 –** In the item configuration menu, select Netwrix Privilege Secure as an option for data
collection.

![npsdatacollectingaccount](/images/auditor/10.9/configuration/grouppolicy/npsdatacollectingaccount.webp)

**Step 3 –** Select the type of the Access Policy you want to use in Netwrix Privilege Secure.
Credential-based is the default option. Refer to the
[Netwrix Privilege Secure](https://helpcenter.netwrix.com/category/privilegesecure_accessmanagement)
documentation for details about Access Policies.

In this case, you need to provide the username of the account managed by Netwrix Privilege Secure,
and to which Netwrix Auditor has the access through a Credential-based access policy.

**NOTE:** Netwrix recommends using different credentials for different monitoring plans and data
sources.

![npsdatacollectingaccountresourced](/images/auditor/10.9/configuration/grouppolicy/npsdatacollectingaccountresourced.webp)

The second option is Resource-based. To use this option, you need to provide the Activity and
Resource names, assigned to Netwrix Auditor in the corresponding Resource-based policy. Ensure
that you specified the same names as in Netwrix Privilege Secure.

The Resource name in this case is where the activity will be performed. For example, if you grant
the data collecting account the access to a local Administrators group - the resource is the server
where the permission will be granted.

Netwrix Privilege Secure is ready to use as an account for data collection.
