Knowledge Base - Smart Flows

Creating a Microsoft SharePoint Connector

A Microsoft SharePoint connector lets Smart Flows store documents in SharePoint, and lets the Store in Microsoft SharePoint flow step write to a library of your choice.

Smart Flows connects to SharePoint through an app registration in Microsoft Entra ID. You can either use the app registration that Experlogix provides, or register your own in the Microsoft Entra admin center.

Microsoft retired the older pattern, in which the app was registered in the SharePoint registry, on April 2, 2026. Connectors that still use it can no longer connect to SharePoint Online. If you still have connectors on the old pattern, see Migrating a SharePoint Connector to Microsoft Entra.

Permissions

Connectors are available to administrators only.

Setting up the connector also requires a Microsoft 365 account in your tenant:

  • To consent to the permissions of the app registration: the account must be a Global Administrator or an Application Administrator. Which of these roles is required depends on the consent settings of your tenant.

  • To access the site: the account must be an owner of the target SharePoint site, and of any Microsoft Teams groups connected to that site.

  • To let Smart Flows create the site permission: the account must be a Global Administrator.

These are Microsoft Entra roles and are separate from the permissions on the SharePoint site. The SharePoint Administrator role alone is not enough.

Glossary

Term

Meaning

Authorization Type

How the connector authenticates against SharePoint. Microsoft SharePoint Entra (OAuth) is the current option.

App registration

The identity of Smart Flows in your Microsoft Entra ID tenant. It has a client ID and a client secret.

Preset app registration

The app registration supplied with Smart Flows, so that you do not have to create one.

Custom app registration

An app registration that you create yourself in Microsoft Entra ID, owned by your own tenant.

Client secret value

The value of a client secret of the app registration. This is not the same as the Secret ID, which is shown next to it in Microsoft Entra ID.

Site permission

A permission that grants the app registration access to one specific SharePoint site. Required for the Sites.Selected scope.

Scope

What Smart Flows is allowed to do in SharePoint, for example Sites.Selected or AllSites.Write.

Authorizing account

The Microsoft 365 account that signs in on the Authorize Smart Flows step to consent to the permissions of the app registration and authorize the connection to SharePoint.

Choosing an Authorization Type

The Authorization Type field offers four values:

Value

Use it for

Microsoft SharePoint Entra (OAuth)

SharePoint Online, using an app registration in Microsoft Entra ID. This is the default and the recommended value.

SharePoint Online (OAuth)

The legacy pattern, in which the app is registered in the SharePoint registry. Retired by Microsoft and no longer works for SharePoint Online.

SharePoint Server (OAuth)

SharePoint Server, using OAuth.

SharePoint Server (Username / Password)

SharePoint Server, using the credentials of a connector user.

SharePoint Online (OAuth) is still available in Smart Flows, but Microsoft has deprecated the underlying pattern and no longer supports it for SharePoint Online. If you select this option, Smart Flows notifies you of the deprecation and recommends switching to Microsoft SharePoint Entra (OAuth). The rest of this article applies only to Microsoft SharePoint Entra (OAuth).

The rest of this article describes Microsoft SharePoint Entra (OAuth).

Choosing an App Registration

When the authorization type is Microsoft SharePoint Entra (OAuth), the App registration settings section offers two options:

Option

What it means

Use the Smart Flows app registration (recommended)

Smart Flows connects through the app registration that is supplied with the product. You do not create anything in Microsoft Entra ID, and you do not enter a client ID or a client secret.

Use a custom app registration

You register an app in your own Microsoft Entra ID tenant and enter its client ID and client secret value.

The client ID of the Smart Flows app registration is not shown, except when you create the site permission manually. In that case, Smart Flows shows it in App registration client ID, because you need it to create the permission.

Note: the App registration settings section is only shown if a preset app registration is configured for your Smart Flows installation. If it is not, the connector always uses a custom app registration, and Smart Flows takes you straight to the registration step.

Before You Start

Collect the following:

  • The URL of your SharePoint tenant, for example <https://example.sharepoint.com.>

  • The name of the SharePoint site you want to connect to, if you connect to one specific site.

  • A Microsoft 365 account with the roles described in Permissions.

  • If you use a custom app registration, access to the Microsoft Entra admin center to register the app. See Registering a Custom App in Microsoft Entra ID.

  • If you use the Client credentials OAuth flow, a password-protected PFX certificate uploaded under Assets. See Using the Client Credentials OAuth Flow.

Creating the Connector

To create a Microsoft SharePoint connector:

  1. Open Control panel > Connectors.

  2. Select Create.

  3. Enter a Name and, optionally, a Description, select Microsoft SharePoint in Type, and select Next.

  4. On the Microsoft SharePoint URL step, enter the URL of your SharePoint tenant in Microsoft SharePoint URL, for example <https://example.sharepoint.com.>

  5. In SharePoint site, enter the name of the site you want to connect to. Leave it empty to connect to the root of the tenant.

  6. Leave Authorization Type set to Microsoft SharePoint Entra (OAuth).

  7. In App registration settings, select Use the Smart Flows app registration (recommended) or Use a custom app registration. See Choosing an App Registration.

  8. Open Advanced settings if you need to change the scope, the URL extension, or how the site permission is created. See Granting Smart Flows Access to a Site and Advanced Settings.

  9. If you selected Use the Smart Flows app registration (recommended) and Create the permission manually, create the site permission with the client ID shown in App registration client ID before you continue. Select Visit Microsoft Learn for instructions, or see Selected permissions in OneDrive and SharePoint.

  10. Select Next.

  11. If you selected a custom app registration, enter the Client Id and the Client Secret on the registration step. See Registering a Custom App in Microsoft Entra ID.

  12. If the Client credentials OAuth flow is selected, enter the Client Id and select the Certificate on the registration step. See Using the Client Credentials OAuth Flow.

  13. If you selected Let Smart Flows create the permission, the Create Smart Flows Permission step appears. Select Authorize Smart Flows and sign in with a Global Administrator account.

  14. On the Authorize Smart Flows step, select Authorize Smart Flows and sign in with the authorizing account. On the Microsoft consent screen, select Consent on behalf of your organization and select Accept. This account consents to the permissions of the app registration and authorizes the connection to SharePoint. If User authentications are enabled for the connector, flows use the credentials of each user at runtime instead. See Individual User Authentication (IUA).

  15. On the Default library step, select the library where documents are stored when a flow does not specify a location.

  16. Review the properties on the Connected step and finish the setup.

Registering a Custom App in Microsoft Entra ID

Skip this section if you use the Smart Flows app registration.

Smart Flows shows the steps and the values you need on the registration step of the wizard, under "Follow these steps to create an app registration in Entra Id". Keep this step open while you register the app.

To register the app:

  1. Select Visit Entra ID. The Register an application page of the Microsoft Entra admin center opens.

  2. Enter a name for the app and select the supported account types you need.

  3. Before you select Register, under Redirect URI, select Web and enter the redirect URI that Smart Flows shows on the registration step. Use the copy button next to Redirect URI so that the value matches exactly.

  4. Select Register.

  5. Copy the Application (client) ID of the new app and enter it in Client Id in Smart Flows.

  6. Under API permissions, add the delegated SharePoint permission that matches the scope of the connector: Sites.Selected, or AllSites.Write or AllSites.Manage if the connector uses multiple site collections. Then select Grant admin consent.

  7. Under Certificates & secrets, create a client secret. Copy the Value of the secret and enter it in Client Secret in Smart Flows. Do not use the Secret ID. The value is shown only once, right after you create the secret. When the secret expires, reconfigure the connector with a new secret value.

  8. Select Next.

If the connector uses the Sites.Selected scope and you selected Create the permission manually, the registration step also shows a Create app permission section. Create a site permission for the site and this app. Only a Global Administrator can create this permission. Select Visit Microsoft Learn for instructions, or see Selected permissions in OneDrive and SharePoint.

Note: The steps below describe the Microsoft Entra admin center, which is maintained by Microsoft. The exact steps and labels may change. For the most up-to-date instructions, see Register an application in Microsoft Entra ID on Microsoft Learn. The values you enter come from Smart Flows and stay the same: the redirect URI, the client ID, and the client secret value.

Using the Client Credentials OAuth Flow

By default, a Microsoft SharePoint connector uses the Authorization code OAuth flow: on the Authorize Smart Flows step, an account signs in to Microsoft, and the connector accesses SharePoint with that account. With the Client credentials OAuth flow, the connector accesses SharePoint as the app registration itself (app-only access). It authenticates with a certificate, and no account signs in.

To select the OAuth flow:

  1. Go to Control panel > Settings > Plugin settings > Microsoft SharePoint. See Settings | Plugin Settings.

  2. Under OAuth settings, set OAuth flow to Client credentials.

Smart Flows uses this setting when you create or reconfigure a Microsoft SharePoint connector. When the Client credentials flow is selected:

  • The Authorization Type is set to Microsoft SharePoint Entra (OAuth) and cannot be changed.

  • The connector uses a custom app registration. The Smart Flows app registration is not available.

  • On the registration step, you enter the Client Id and select the Certificate. The Client Secret is required only if you select Let Smart Flows create the permission, or if you use user authentications with this connector. Otherwise, leave it empty.

  • On the Authorize Smart Flows step, the Client Id and the Certificate are shown read-only, and no account signs in. Smart Flows authenticates with the certificate. To change these values, return to the registration step.

Before you create the connector, prepare the following:

  • A custom app registration in Microsoft Entra ID. See Registering a Custom App in Microsoft Entra ID.

  • The certificate added to the app registration in Microsoft Entra ID. For instructions, see Add and manage application credentials on Microsoft Learn.

  • The certificate with its private key uploaded under Assets as a password-protected PFX file, together with its password. See Assets. The certificate must:

    • Contain an RSA private key of at least 2048 bits.

    • Be currently valid, that is, not expired and not before its start date.

Granting Smart Flows Access to a Site

With the Sites.Selected scope, access to a site is restricted by default, and a separate site permission has to be created for the app registration and that site.

The Create a permission for Smart Flows to access this site field, in Advanced settings, controls how this happens:

Option

What it does

When to use it

Let Smart Flows create the permission

Smart Flows creates the permission during setup. An extra authorization step appears, which requires administrator consent for full control over all sites. The consent can be withdrawn manually after the setup is complete.

You want the simplest setup, and a Global Administrator can temporarily grant full control over all sites.

Create the permission manually

You create the permission yourself, for example with Microsoft Graph. Smart Flows shows a link to the Microsoft Learn documentation and the client ID you need.

Your security policy does not allow you to grant Smart Flows full control over all sites, even temporarily.

The permission has already been created

Smart Flows continues without creating the permission.

The permission already exists, for example because you reconfigure an existing connector.

This field is only shown when the authorization type is Microsoft SharePoint Entra (OAuth) and Use multiple site collections is not selected.

Advanced Settings

Setting

Description

Disable SharePoint site-caching mechanism. This will likely decrease performance.

Smart Flows caches information about SharePoint sites between flow runs. Select this to always work with the most up to date data, at the cost of latency.

Use multiple site collections

Select this if the connector has to reach more than one site collection.

Create a permission for Smart Flows to access this site

How the site permission is created. See Granting Smart Flows Access to a Site.

URL extension

The part of the site path that separates the tenant URL from the site collections, either sites or teams. For example: <https://tenant.sharepoint.com/URL-EXTENSION/my-sitecollection.>

Set permission level

The scope Smart Flows requests.

Scopes

With Microsoft SharePoint Entra (OAuth), the available scope depends on Use multiple site collections:

Use multiple site collections

Available scope

Not selected

Sites.Selected. Allows access to a subset of site collections. The specific site collections and the permissions granted are configured separately. This value is fixed.

Selected

AllSites.Write, to edit or delete documents and list items in all site collections, or AllSites.Manage, to create or delete libraries and lists in all site collections.

Testing the Connection

To test the connector:

  1. Open Control panel > Connectors.

  2. Select the connector.

  3. Select Test.

On success, Smart Flows reports "Microsoft SharePoint tested successfully".

External Resources