SharePoint (App-Only)

Service-account connection to SharePoint via an Azure app (client credentials).

Fields

FieldDescriptionRequired
Client IDApplication (client) ID of the Azure App Registration.Yes
Client SecretThe client secret Value (not the Secret ID) from Certificates & secrets.Yes
Tenant IDDirectory (tenant) ID of your Microsoft 365 organization.Yes
Default Site IDOptional. Required when the app uses the Sites.Selected scope. Format: host,siteCollectionId,webId.No

Register an Azure App

  1. In the Azure Portal, go to Microsoft Entra ID → App registrations → New registration. Choose single-tenant.
  2. Under API permissions, add the Microsoft Graph Application permissions Sites.Read.All and Sites.ReadWrite.All (or Sites.Selected for specific sites), then Grant admin consent.
  3. Under Certificates & secrets, create a client secret and copy its Value immediately.
  4. Copy the Application (client) ID and Directory (tenant) ID from the Overview page.

Sites.Selected — granting specific sites

If the app uses Sites.Selected, an admin app must grant the SharePoint app access to each site, and you must supply the Site ID (format host,siteCollectionId,webId) on the credential or in the node — dynamic site discovery isn't available with this scope.

Testing the Connection

Test Credential mints an app token via client credentials and probes the site (the configured Site ID, or the tenant root). A 403 means the app authenticated but lacks permission to the site — grant Sites.Read.All or use Sites.Selected with a Site ID.