Skip to main content

Configure OAuth U2M: Databricks-managed for Microsoft SharePoint ingestion

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

tip

This is the recommended authentication method for most users. If your organization requires control over the OAuth application registration, see OAuth U2M: Custom-managed instead.

Prerequisites​

  • A Databricks workspace with Unity Catalog enabled.
  • The CREATE CONNECTION privilege on the metastore.
  • Your Microsoft Entra ID tenant ID. To find it, sign in to the Azure portal, click Microsoft Entra ID, and copy the Tenant ID value from the Overview page.
  • If your Microsoft Entra ID tenant doesn't allow users to consent to applications, an Entra ID administrator must grant consent to the Databricks application before you sign in. See Grant admin consent.

When you sign in, the Databricks application requests the following Microsoft Graph delegated permissions:

  • Sites.Read.All
  • offline_access

If your tenant requires admin consent for these permissions, an Entra ID administrator, such as a Cloud Application Administrator or Application Administrator, must grant consent one time for the whole tenant. If no one in your tenant has consented yet, the Databricks application doesn't appear under Enterprise applications in the Microsoft Entra admin center. To grant consent, the administrator signs in from the connection wizard:

  1. Follow the steps in Create the connection through Sign in.
  2. In the Microsoft permissions prompt, select Consent on behalf of your organization, and then click Accept.

The administrator doesn't need to finish creating the connection. After the administrator grants consent, other users in the tenant can sign in without admin approval. For more information, see Grant tenant-wide admin consent to an application in the Microsoft documentation.

Create the connection​

  1. In the Databricks workspace, click Data icon. 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 SharePoint.
  4. In the Auth type drop-down menu, select OAuth U2M: Databricks-managed.
  5. Click Next.
  6. On the Authentication page, enter the following:
    • Domain: The SharePoint instance URL in the following format: https://MYINSTANCE.sharepoint.com
    • Tenant ID: Your Microsoft Entra ID tenant ID.
  7. Click Sign in.
  8. In the sign-in window, choose the account you want to authenticate with and complete the sign-in flow.
  9. 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 SharePoint
  2. Common pipeline maintenance tasks