---
title: "Create Entra ID app for Modern Authentication"
description: "Learn how to register an Entra ID app, grant Exchange Online permissions, upload a certificate, and get the tenant ID for Netwrix Data Classification."
sidebar_position: 10
---

# Create Entra ID app for Modern Authentication

To connect to an Exchange Online organization that uses Modern authentication, you need to create an
Azure AD application, as described in this section.

## Step 1: Prepare application certificate

Prepare application certificate as follows:

1. Create (or load) an IIS certificate on NDC Server (recommended).

:::note
Install this certificate for the local machine so that Netwrix Data Classification and
other services can access it.
:::


2. Export the certificate (.CER file):

    1. Open the certificate in IIS management console.
    2. Go to the **Details** tab.
    3. Select **Copy to File**.

    :::note
    Don't export private key.
    :::


    4. Set file type to _DER-encoded CER_.

## Step 2: Create and Register a new app in Azure AD

To register a new Azure AD application, do the following:

1. Sign into the **Microsoft 365 Admin Center** (with your _Global Administrator_, _Application
   Administrator_ or _Cloud Application Administrator_ account) and go to the **Azure Active
   Directory admin center**.
2. Search for and select the **Azure Active Directory admin center**.
3. Under the Azure Directory select the **App registrations** section.
4. Select **New registration**:

![mfa_o365_thumb_0_0](/images/dataclassification/5.8/configuration/configinfrastructure/mfa_o365_thumb_0_0.webp)

5. In the **Name** field, enter the application name.
6. In the **Supported account types** select who can use this application – use the **Accounts in
   this organizational directory only** option.
7. Click the **Register** button.

:::note
Application redirect URl is optional, you can leave it blank on this step.
:::


8. . Copy your application ID from the **Overview** section to a safe location.

## Step 3: Grant Required Permissions

Next, you need to grant your new application the required API permissions.

You can assign Azure AD applications either _Delegated_ or _Application_ permissions:

- _Delegated_ permissions require a signed-in user present who consents to the permissions every
  time the app sends an API call.
- _Application_ permissions require one-time consent from an administrator.

For the newly created app, use _Application_ permissions.

:::note
By default, a new application has one delegated permission for **Microsoft Graph
API** – **User.Read**. It isn't required, and you can remove it.
:::


Do the following:

1. At the top of the **Request API permissions** pane, click the **APIs your organization uses** tab
   and search for _Office 365 Exchange Online_.
2. Go to APIs your organization uses and search for "office" in the search bar.
3. Select Office 365 Exchange Online.
4. Click the _Office 365 Exchange Online_ entry in the list of apps found.
5. Proceed with adding the permissions for this app: select **Application permissions** and then
   select **full_access_as_app**.
6. Click **Add a permission**.

Finally, you need to grant admin consent to the tenant (that is, for the Exchange organization
whose audit data the newly registered app collects).

Do the following:

1. Go to the new app settings > **API permissions** and click **Grant admin consent for
   _`<tenant name>`_**.
2. When prompted to confirm granting, click **Yes.**

## Step 4: Configure Certificates & secrets

Having configured the app, you can upload its application certificate.

1. In the app settings, click **Certificates & secrets** and select **Upload certificate**.
2. Upload the .CER file you prepared at Step 1: Prepare application certificate.
3. Copy the certificate thumbprint to a safe location.

## Step 5: Obtain Tenant ID

1. Open **Azure Active Directory admin center**.
2. Select **Azure Active Directory > Overview** section for the required Exchange Online
   organization.
3. Locate the **Tenant ID** and copy it to a safe location.
