Setting Up a Microsoft Entra Application for Sharing Documents Via SharePoint

Prev Next

These steps are required to configure aSharePoint integration application in your Microsoft 365 tenant. This process involves registering a new application and granting it the necessary permissions to read site and file data.

Step 1: Register a new DataBee CCM Application in Microsoft Entra ID

This step creates a unique identity for your application, allowing it to authenticate with Microsoft Graph.

  • Log in to the Microsoft Entra Admin Center:

    • Go to https://entra.microsoft.com and sign in with a Global Administrator, Application Administrator, or Cloud Application Administrator account.

  • Navigate to App Registrations:

    • In the left-hand navigation pane, go to Identity > Applications > App registrations.

  • New Registration:

    • Click New registration.

  • Name: Enter a descriptive name for your application (e.g., "DataBee CCM for SharePoint").

  • Supported account types: Select "Accounts in this organizational directory only (Default Directory only - Single tenant)."

  • Redirect URI: You can leave this blank for a script that does not involve user sign-in.

  • Click Register.

  • Once the application is registered, you will be taken to its overview page.

  • Copy the "Application (Client) ID" and save it. This is a crucial value for your application's configuration and will be needed to set up connectivity with DataBee.

Step 2: Create an OAuth2 Client Secret

Your application needs a credential to prove its identity to Microsoft Entra ID.

Client Secret

  • On your application's page, navigate to Certificates & secrets.

  • Under "Client secrets," click New client secret.

  • Description: Enter a description (e.g., "DataBee SharePoint Secret").

  • Expires: Choose an expiration period (e.g., 24 months).

  • Click Add.

  • Copy the "Value" of the secret. This is the only time you can copy this value. Save it securely.

Step 3: Grant API Permissions

This step grants your application the specific permissions it needs to read data from SharePoint. Since DataBee needs to read all files across all sites, you will use Application Permissions.

  • On your application's page, navigate to API permissions.

  • Click Add a permission.

  • In the "Microsoft APIs" tab, select Microsoft Graph.

  • Choose Application permissions. This is critical for background services.

  • Search for and select the following permissions:

    • Sites.Read.All: Required to read the metadata of all site collections, lists, and list items.

    • Files.Read.All: Required to read the files and folders (drive items) in all site collections.

  • Click Add permissions.

  • Grant Admin Consent:

    • The permissions you've added are initially in a "Not granted" state.

    • As an administrator, click the "Grant admin consent for <Your Tenant>" button.

    • Confirm the action. The status for both permissions should now show a green checkmark with "Granted for <Your Tenant>."

Step 3 Alternate: Grant API Permissions Limited to a Single SharePoint Site

Use this more involved process if you wish to limit DataBee access to a single Site within your SharePoint tenancy. If Microsoft Graph Explorer is not available contact DataBee Support for instructions using Azure Cloud Shell.

  1. On your application's page, navigate to API permissions.

  2. Click Add a permission.

  3. In the "Microsoft APIs" tab, select Microsoft Graph.

  4. Choose Application permissions. This is critical for background services.

  5. Search for and select the following permissions:

    1. Sites.Selected: Required to access a selected site.

  6. Click Add permissions.

  7. Grant Admin Consent.

    1. The permissions you've added are initially in a "Not granted" state.

    2. As an administrator, click the "Grant admin consent for <Your Tenant>" button.

    3. Confirm the action. The status for both permissions should now show a green checkmark with "Granted for <Your Tenant>

  8. Log into Microsoft Graph Explorer as a Tenant Admin.

  9. Temporarily Grant Graph Explorer the Required Permissions. Before you can grant site-level permissions, Graph Explorer itself needs the Sites.FullControl.All permission. This is a one-time admin setup action. Once you've completed the permission grants below, you can revoke this consent from Graph Explorer if you'd like — the permissions you grant to your app will persist.

    1. In Graph Explorer, click Modify Permissions.

    2. Find and consent to Sites.FullControl.All

  10. Get the SharePoint Site ID. If you don't already know your site ID, run the following GET request in Graph Explorer. Copy the id value from the response.

    GET https://graph.microsoft.com/v1.0/sites/{YOUR-DOMAIN}.sharepoint.com:/sites/{YOUR-SITE-NAME}
  11. Grant the DataBee CCM for SharePoint Application Read Access to the Site

    1. In Graph Explorer, switch to POST request and set URL to:

      POST https://graph.microsoft.com/v1.0/sites/{site-id-from-step-3}/permissions
    2. Use the following request body. Use "read" for read-only access:

      {
        "roles": ["read"],
        "grantedToIdentities": [
          {
            "application": {
              "id": "<your-databee-ccm-for-sharepoint-app-client-id>",
              "displayName": "DataBee CCM for SharePoint"
            }
          }
        ]
      }
    3. Click Run Query and verify the API call was successful.

  12. Repeat Steps 10 and 11 for each additional SharePoint site you want to connect.

  13. Optional: Revoke Graph Explorer FullControl permission.

Provide the Following Values for Integration as a DataBee SharePoint Connector

When creating a new sub-metric using SharePoint you will need to enter the following values. Once you’ve created a SharePoint connector in DataBee you can reuse it for additional sub-metrics and reference different files or folders.

  • Tenant ID: You can find this on the "Overview" page of the app registration. It's also known as the "Directory (tenant) ID."

  • Client ID: The "Application (Client) ID" from Step 1.

  • Client Secret Value : The credential value you obtained in Step 2.

  • Site URL: URL of the Site

  • Region: Region of Microsoft tenant

Copyright © 2026 DataBee®, A Comcast Company.
DataBee® is a registered trademark of Comcast.