---
title: Configure authentication to Microsoft Outlook
description: Learn how to configure OAuth M2M authentication for Microsoft Outlook ingestion into Databricks, including registering an app in Microsoft Entra ID.
canonical_url: https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/outlook-source-setup
---

# Configure authentication to Microsoft Outlook

> [!NOTE]
> **Beta**
>
> This feature is in [Beta](https://docs.databricks.com/gcp/en/release-notes/release-types.md).

This page describes how to configure OAuth machine-to-machine (M2M) authentication for Microsoft Outlook ingestion into Databricks. The Outlook connector uses OAuth 2.0 client credentials (M2M) to access the Microsoft Graph API on behalf of your organization. Use these credentials to create a Unity Catalog connection in Databricks.

## <a id="prerequisites" />Prerequisites

To configure authentication, you must have the following:

* A Microsoft 365 tenant.
* Permission to register applications in Microsoft Entra ID.
* Permission to grant admin consent for API permissions in your organization.

## <a id="register-an-application" />Register an application in Microsoft Entra ID

1. Sign in to the [Microsoft Entra admin center](https://entra.microsoft.com/).
2. Go to **Entra ID** > **App registrations**.
3. Click **New registration**.
4. Provide a **Name** for the application (for example, `Databricks Outlook Connector`).
5. Under **Supported account types**, select the appropriate option for your organization.
6. Click **Register**.

## <a id="configure-api-permissions" />Configure API permissions

1. In the app registration, go to **API permissions** > **Add a permission**.
2. Select **Microsoft Graph** > **Application permissions**.
3. Add the following permissions:
   * `User.Read.All` or `Directory.Read.All` — required only to discover and list all mailboxes in the tenant. If you set the `include_mailboxes` option to ingest a specific set of mailboxes, the connector skips discovery and does not require this permission. See [Connector options](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/outlook-reference.md#connector-options).
   * `Mail.Read` — required to read email messages and attachments.
4. Click **Grant admin consent** or request that an administrator grants admin consent for your organization.

   > [!NOTE]
   >
   > The connector requires **application** permissions, not delegated permissions. Confirm that the permission type is set to **Application** for each permission you add.

## <a id="create-a-client-secret" />Create a client secret

1. In the app registration, go to **Certificates & secrets** > **Client secrets**.
2. Click **New client secret**, provide a description and expiration period, then click **Add**.
3. Copy the client secret **Value** immediately. The value is not shown again after you leave the page.

## <a id="collect-identifiers" />Collect the required identifiers

From the app registration's **Overview** page, record the following:

* **Application (client) ID**
* **Directory (tenant) ID**

You will enter these values when you create the Unity Catalog connection.

## <a id="next-steps" />Next steps

Use Catalog Explorer to create a connection so that any user with `USE CONNECTION` or `ALL PRIVILEGES` can create pipelines. See [Create an Outlook connection](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/outlook-connection.md).
