Connecting to Microsoft Graph

Connecting to Microsoft Graph

Microsoft Graph is the unified gateway to all Microsoft 365 services. By authenticating a single MS Graph Connection, you eliminate the need for individual connections to SharePoint, OneDrive, and Excel, while gaining full support for Multi-Factor Authentication (2FA).

Prerequisites

You must have access to your Microsoft Entra portal (formerly Azure Portal) and administrative rights to grant API permissions.

Feature Details
AvailabilityRequired for all modern MS Connectors
SupportsSharePoint (Lists/Docs), OneDrive, OneDrive Business, Excel Online
SecuritySupports 2FA and App-Only Roles

Adding the Connection

  • Navigate to Data Hub > Connections > Add Connection (top right corner).
  • Select Microsoft Graph from the options.
  • Select the newly added connection to view its properties (if not expanded).
  • Copy the Callback URL; you’ll need it when registering the Entra ID app.

Before moving on to App Registration (below). Note the connection’s properties needed when returning to authenticate:

  • Authenticate With dropdown options:
    • App-Only: Accesses data without a signed-in user. (Application Permission set in Entra)
    • User Account: Acts on behalf of a signed-in user. (Delegated Permission set in Entra)
  • Client IDClient Secret, and Tenant ID fields. You’ll generate these when registering your Entra ID app.

App Registration (Microsoft Entra Portal)

Before configuring the platform, you must register our service as an application in your Microsoft environment.


Create the Registration

  1. Log in to the Entra Portal.
  2. In Microsoft Entra ID Admin Center, navigate to App registrations > New registration.
  3. Name: Enter a descriptive name (e.g., “Appenate Connector”).
  4. Supported Account Types: Select Accounts in any organizational directory (Any Microsoft Entra ID – Multitenant) for most use cases.
  5. Redirect URI: Select Web and paste the Callback URL.

Generate Credentials

  1. Client ID: Once registered, copy the Application (client) ID from the Overview page.
  2. Client Secret: Go to Certificates & secrets > New client secret.
    • Important: Copy the Value immediately; it is hidden once you leave the page.
  3. Tenant ID: Copy the Directory (tenant) ID from the Overview page (required for “Organization Only” apps).

Configuring API Permissions

Navigate to API Permissions > Add a permission > Microsoft Graph. You must choose between User Account (Delegated) or App-Only (Application) permissions based on your needs.

Overview of Microsoft Graph permissions – Microsoft Graph | Microsoft Learn

Required Scopes Table

Permission NameTypeDescription
offline_accessBothMaintains access without repeated logins.
Sites.ReadWrite.AllBothFull access to SharePoint lists/items.
Files.ReadWriteBothAccess to user files (OneDrive/Excel).
User.ReadDelegatedBasic profile access for the user.

If the status shows “Admin consent required,” a Global Admin must click the “Grant admin consent for [Org]” button.


Authorizing the Connection

Now, link your Entra app details to our platform.

  1. Navigate to Data Hub > Connections.
  2. Select Microsoft Graph.
  3. Authenticate With:
    • User Account: Acts on behalf of a signed-in user.
    • App-Only: Accesses data without a signed-in user.
      (Requires a User Object ID on specific connectors).
  4. Enter your Client IDClient Secret, and Tenant ID.
  5. Hit Save, then click the Authorize button that appears (depending on authentication mode).

Using the Connection in Connectors

Once authorized, you will select this MS Graph Connection in the “Using Connection” dropdown for your various connectors.

SharePoint / Excel Property Reference

PropertyRequirementNote
Sub-Site NameRequiredEnter only the Site Name or Subsite Name.
List NameRequiredSearch for your list or enter it manually via “Specify List.”
Refresh FrequencyRequired(Data Sources only) The interval for pulling data.
Filter with GraphOptionalDefine OData filter statements for efficiency.

Customize Microsoft Graph Responses with Query Parameters
Columns from ViewOptionalSpecify the internal column names in a comma-separated list.

How to find the internal name of list or library columns

Restricting Access with Sites.Selected

Restricting access to specific SharePoint sites rather than granting access to all site collections is a common requirement for enterprise security. Using the Sites.Selected scope ensures that your App Registration only interacts with the data it strictly needs.

When you use the Sites.Selected permission, your app has zero access by default. You must manually “invite” the app to specific sites.

Azure Portal Configuration

  1. Navigate to App Registration > API Permissions.
  2. Add Microsoft Graph > Application Permissions.
  3. Search for and select Sites.Selected.
  4. Important: You must also add Files.SelectedOperations.Selected if you intend to upload or download documents.
  5. Click Grant Admin Consent.

Granting Permission to Specific Sites

Since there is no toggle in the Azure UI to pick sites, you must use the Microsoft Graph API to assign roles.

Create permission – Microsoft Graph v1.0 | Microsoft Learn

Role Options:

  • read: Can view and download.
  • write: Can create, edit, and delete.

Impact on Platform Configuration

Using restricted scopes changes how you configure connectors on our platform:

  • Search is Disabled: The “Search” button for Site Names and Document Libraries will not work because the app cannot “see” the list of all sites.
  • Manual Entry Required: You must provide the Full SharePoint Site URL (e.g., https://tenant.sharepoint.com/sites/mysitename) instead of just the sub-site name.
  • List Names: You must use the “Specify List” option to manually type the list name, as the dropdown will appear empty.

Summary of Scope Differences

FeatureSites.ReadWrite.AllSites.Selected
SecurityBroad (Access to all sites)Tight (Access to specific sites)
UX in PlatformSearch/Dropdowns workManual URL entry required

Finding the User Object ID for App-Only Connections

When using App-Only Authentication, the platform needs to know whose “drive” or “context” to act within, as there is no interactive user signed in. This is why a User Object ID is required for connectors like Excel Online or OneDrive.

Locate the User Object ID in Microsoft Entra

  1. Log in to the Microsoft Entra admin center (formerly Azure AD).
  2. In the left-hand sidebar, navigate to Identity > Users > All users.
  3. Search for the specific user whose account will “own” or host the files.
  4. Click on the user’s Display Name to open their profile.
  5. Locate the Object ID field (it will be a GUID, like 1a2b3c4d-5e6f-7g8h-9i0j-k1l2m3n4o5p6).
  6. Copy this ID.

Apply the ID to your Connector

Once you have the ID, you must apply it to the specific connector you are configuring.

  1. Navigate to your Form Connector settings (Excel Online or OneDrive).
  2. Ensure the Using Connection dropdown is set to your MS Graph (App-Only) connection.
  3. Find the User ID field.
  4. Paste the Object ID you copied from the Entra portal.
  5. Save your changes.

Comparison: Why is this needed?

Authentication TypeUser ContextUser ID Required?
User AccountInherited from the person who clicked “Authorize.”No
App-OnlyNone (the App acts as a service).Yes (To define target storage)
    • Related Articles

    • Connecting to OneDrive (Personal)

      MS Graph Connection Recommended We highly recommend connecting your Microsoft services using the Microsoft Graph integration. As the unified gateway to Microsoft 365, a single MS Graph connection securely authenticates SharePoint, OneDrive, and Excel ...
    • Connecting to SharePoint

      Authenticating a connection to SharePoint allows the two platforms to communicate. This authentication must be completed before Form Connectors (SharePoint List and SharePoint Document) can push data or Data Source Connectors can pull data. The ...
    • Connecting to OneDrive for Business

      MS Graph Connections Preferred We highly recommend connecting your Microsoft services using the Microsoft Graph integration. As the unified gateway to Microsoft 365, a single MS Graph connection securely authenticates SharePoint, OneDrive, and Excel ...
    • Connecting to Power BI

      Legacy Feature The original vendor no longer supports this type of connection. Instead, use or switch to an MS Graph Connection for your Power BI integrations. Microsoft Power BI is a business intelligence tool that enables users to visualize, ...
    • Form Connector – OneDrive for Business

      This article provides details on linking your app to OneDrive storage using the built-in connector after Connecting to OneDrive (Personal) and authenticating a connection for the connector to use. Alternatively, you can use Connecting to Microsoft ...