Skip to main content

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.

  1. 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.

    1. 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

  1. In the Name field, enter the application name.
  2. In the Supported account types select who can use this application – use the Accounts in this organizational directory only option.
  3. Click the Register button.
note

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

  1. . 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.