---
title: "Configure OAuth U2M: Databricks-managed for Microsoft OneDrive ingestion"
description: "Learn how to configure OAuth U2M: Databricks-managed authentication for Microsoft OneDrive ingestion into Databricks."
canonical_url: https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/onedrive-source-setup-u2m-databricks-managed
---

# Configure OAuth U2M: Databricks-managed for Microsoft OneDrive ingestion

> [!NOTE]
> **Beta**
>
> This feature is in [Beta](https://docs.databricks.com/aws/en/release-notes/release-types.md). Workspace admins can control access to this feature from the **Previews** page by opting into the **Lakeflow Connect for OneDrive For Business** preview. See [Manage Databricks previews](https://docs.databricks.com/aws/en/admin/workspace-settings/manage-previews.md).

This page describes how to configure OAuth U2M: Databricks-managed authentication for Microsoft OneDrive ingestion into Databricks. With this method, Databricks manages the OAuth app registration and token refresh automatically. No Microsoft Entra ID app registration is required.

> [!TIP]
>
> This is the recommended authentication method for most users. If your organization requires control over the OAuth application registration, or if **OAuth U2M: Databricks-managed** isn't listed in your workspace, see [OAuth U2M: Custom-managed](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/onedrive-source-setup-u2m.md) instead.

## Prerequisites

* A Databricks workspace with Unity Catalog enabled.
* The `CREATE CONNECTION` privilege on the metastore.
* A Microsoft work or school account that can access the OneDrive for Business **My files** drive you want to ingest.

## Create the connection

1. In the Databricks workspace, click **![Data icon.](https://docs.databricks.com/aws/en/images/product-icons/DataIcon.svg) Catalog** > **Create** > **Create a connection**.
2. On the **Connection basics** page of the **Set up connection** wizard, specify a unique **Connection name**.
3. In the **Connection type** drop-down menu, select **Microsoft OneDrive**.
4. In the **Auth type** drop-down menu, select **OAuth U2M: Databricks-managed**.
5. Click **Next**.
6. Click **Sign in with Microsoft OneDrive**.
7. In the sign-in window, choose the Microsoft work or school account whose OneDrive you want to ingest, then grant the requested permissions if prompted.
8. Click **Create connection**.

> [!WARNING]
>
> Only share this connection with other Databricks users if you authenticated with a service account in the previous step. If you authenticated with a personal account, do not share the connection. Sharing a personal-account connection grants other users access to your personal account's credentials and data.

## Next steps

1. [Ingest data from OneDrive](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/onedrive-pipeline.md)
2. [Common pipeline maintenance tasks](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/pipeline-maintenance.md)
