---
title: "Accessing SharePoint Online Using Modern Authentication"
description: "Set up modern authentication for SharePoint Online in Netwrix Data Classification: prepare a certificate, register an Azure AD app, and grant permissions."
sidebar_position: 60
---

# Accessing SharePoint Online Using Modern Authentication

Netwrix recommends this option for organizations that use modern authentication as the identity
management approach, with multi-factor authentication (MFA) enabled for their user accounts. In
this scenario, Netwrix Data Classification accesses the cloud-based infrastructure via Microsoft
Graph and other modern APIs, authenticating through a pre-configured Azure AD application with
appropriate access permissions.

So, if you plan to implement such a scenario, register an Azure AD app manually and provide
its settings to Netwrix Data Classification when configuring a monitored item.

## Step 1: Prepare an 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).
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**.
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:

When found, click the entry and proceed with adding the necessary permissions. The steps from
here on remain the same, so in most cases you would need the Application permissions entry, and the
relevant set of permissions therein.

1. Select the relevant entries, then click **Add permissions**.
2. On the **Request API permissions**→Microsoft APIs pane, scroll down and select SharePoint.
3. Select Application Permissions.
4. Apply the following permissions:

    - Graph – Application permissions (With admin consent granted)

        - Sites.FullControl.All (Crawling)
        - Sites.Read.All
        - Sites.ReadWrite.All
        - TermStore.ReadWrite.All

    - SharePoint – Application permissions (With admin consent granted)

        - Sites.FullControl.All (Crawling)
        - TermStore.ReadWrite.All (Term Set access)

    :::note
    For taxonomy manager to full operate you must also make the user “app@sharepoint” a
    taxonomy admin (or group admin).
    :::


5. Click **Add permissions**.

## 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 an 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.
