Skip to main content

Microsoft SharePoint

This page contains the setup guide and reference information for the Microsoft SharePoint source connector.

Prerequisites​

  • A Microsoft 365 work or school account with access to the SharePoint sites and document libraries you want to sync.
  • For OAuth authentication: a Microsoft account that can consent to the delegated permissions the connector requests: Files.Read.All, Sites.Read.All, and Sites.Selected.
  • For Service Key authentication (Airbyte Open Source): an app registration in Microsoft Entra ID with its Application (client) ID, Directory (tenant) ID, and a client secret, plus the User Principal Name (UPN) of a user in your tenant. See Step 1: Set up SharePoint application.

Setup guide​

Set up Microsoft SharePoint​

For Airbyte Cloud:​

  1. Log into your Airbyte Cloud account.
  2. Click Sources and then click + New source.
  3. On the Set up the source page, select Microsoft SharePoint from the Source type dropdown.
  4. Enter a name for the Microsoft SharePoint connector.
  5. Select Search Scope: ACCESSIBLE_DRIVES searches the SharePoint document libraries you can access, SHARED_ITEMS searches items shared with you, and ALL searches both. The default is ALL. Microsoft is retiring the API the connector uses to find shared items. See Search scope and shared items before you choose SHARED_ITEMS or ALL.
  6. Enter Folder Path. Leave empty to search all folders of the drives. This doesn't apply to shared items.
  7. (Optional) Enter Site URL to search a specific SharePoint site. See Multi-Site Support.
  8. The OAuth2.0 authorization method is selected by default. Click Authenticate your Microsoft SharePoint account. Log in and authorize your Microsoft account.
  9. For Start Date, enter the date in YYYY-MM-DD format. The connector replicates data added on and after this date.
  10. Add a stream:
  11. Write the File Type
  12. In the Format box, use the dropdown menu to select the format of the files you'd like to replicate. The supported formats are CSV, Parquet, Avro, JSONL, Excel, and Document File Type Format. Toggling the Optional fields button within the Format box will allow you to enter additional configurations based on the selected format. For a detailed breakdown of these settings, refer to the File Format section below.
  13. Give a Name to the stream
  14. (Optional) - If you want to enforce a specific schema, you can enter a Input schema. By default, this value is set to {} and will automatically infer the schema from the file(s) you are replicating. For details on providing a custom schema, refer to the User Schema section.
  15. Optionally, enter the Globs, which determine which files to sync. Globs are glob-style path patterns, not regular expressions. To replicate all files, use ** as the pattern. For more precise pattern matching options, refer to the Path Patterns section below.
  16. Click Set up source

For Airbyte Open Source:​

  1. Navigate to the Airbyte Open Source dashboard.
  2. Click Sources and then click + New source.
  3. On the Set up the source page, select Microsoft SharePoint from the Source type dropdown.
  4. Enter a name for the Microsoft SharePoint connector.

Step 1: Set up SharePoint application​

The Microsoft Graph API uses OAuth for authentication. Microsoft Graph exposes granular permissions that control the access that apps have to resources, like users, groups, and mail. When a user signs in to your app, they or in some cases an administrator are given a chance to consent to these permissions. If the user consents, your app is given access to the resources and APIs that it has requested. For apps that don't take a signed-in user, permissions can be pre-consented to by an administrator when the app is installed.

Microsoft Graph has two types of permissions:

  • Delegated permissions are used by apps that have a signed-in user present. For these apps, either the user or an administrator consents to the permissions that the app requests, and the app can act as the signed-in user when making calls to Microsoft Graph. Some delegated permissions can be consented by non-administrative users, but some higher-privileged permissions require administrator consent.
  • Application permissions are used by apps that run without a signed-in user present; for example, apps that run as background services or daemons. Application permissions can only be consented by an administrator.

Service Key authentication requires Application permissions. Follow these instructions to create an app in the Azure portal. This process produces the Client ID, Client Secret, and Tenant ID that you enter in the connector configuration.

  1. Log in to the Azure portal.
  2. Click the upper-left menu icon and select Microsoft Entra ID.
  3. Select App Registrations
  4. Click New registration
  5. Register an application
    1. Name:
    2. Supported account types: Accounts in this organizational directory only
    3. Register (button)
  6. Record the Application (client) ID and Directory (tenant) ID.
  7. Select Certificates & secrets
  8. Provide Description and Expires
    1. Description: for example, airbyte-sharepoint
    2. Expires: 1-year
    3. Add
  9. Copy the client secret value. This is the Client Secret.
  10. Select API permissions
    1. Click Add a permission
  11. Select Microsoft Graph
  12. Select Application permissions
  13. Select the following permissions:
    1. Files
      • Files.Read.All
  14. Click Add permissions
  15. Click Grant admin consent

Step 2: Set up the Microsoft SharePoint connector in Airbyte​

  1. Navigate to the Airbyte Open Source dashboard.
  2. Click Sources and then click + New source.
  3. On the Set up the source page, select Microsoft SharePoint from the Source type dropdown.
  4. Enter the name for the Microsoft SharePoint connector.
  5. Select Search Scope. Service Key Authentication can't list items shared with you, so select ACCESSIBLE_DRIVES. If you select ALL, the connector only searches accessible drives, and SHARED_ITEMS fails. See Search scope and shared items.
  6. Enter Folder Path. Leave empty to search all folders of the drives. This doesn't apply to shared items.
  7. (Optional) Enter Site URL to search a specific SharePoint site. See Multi-Site Support.
  8. Switch to Service Key Authentication.
  9. For User Principal Name, enter the UPN for your user.
  10. Enter Tenant ID, Client ID and Client Secret.
  11. For Start Date, enter the date in YYYY-MM-DD format. The connector replicates data added on and after this date.
  12. Add a stream:
    1. Write the File Type
    2. In the Format box, use the dropdown menu to select the format of the files you'd like to replicate. The supported formats are CSV, Parquet, Avro, JSONL, Excel, and Document File Type Format. Toggling the Optional fields button within the Format box will allow you to enter additional configurations based on the selected format. For a detailed breakdown of these settings, refer to the File Format section below.
    3. Give a Name to the stream
    4. (Optional) - If you want to enforce a specific schema, you can enter a Input schema. By default, this value is set to {} and will automatically infer the schema from the file(s) you are replicating. For details on providing a custom schema, refer to the User Schema section.
    5. Optionally, enter the Globs, which determine which files to sync. Globs are glob-style path patterns, not regular expressions. To replicate all files, use ** as the pattern. For more precise pattern matching options, refer to the Path Patterns section below.
  13. Click Set up source

Search scope and shared items​

The Search Scope setting controls where the connector looks for files:

  • ACCESSIBLE_DRIVES: SharePoint document libraries from the site in Site URL, or from the main site if you leave it empty.
  • SHARED_ITEMS: Items that other users shared with you.
  • ALL (default): Both of the above.

The connector finds shared items with the Microsoft Graph sharedWithMe API. Microsoft deprecated this API. It operates in a degraded state until November 2026, after which it stops returning data. There's no replacement API. After the retirement:

  • With ALL, the connector logs a warning, skips shared items, and continues to sync files from accessible drives.
  • With SHARED_ITEMS, the sync fails with a configuration error.
  • Files shared from a SharePoint site can still be synced. Set Search Scope to ACCESSIBLE_DRIVES and Site URL to that site. This syncs the site's whole document library, so use Folder Path and Globs to narrow the files you replicate.
  • Files shared from another user's OneDrive can't be synced.

The sharedWithMe API requires a signed-in user, so it doesn't support application permissions. With Service Key Authentication, the connector never lists shared items: SHARED_ITEMS fails with a configuration error, and ALL behaves like ACCESSIBLE_DRIVES.

Path Patterns​

(tl;dr -> path pattern syntax using wcmatch.glob. GLOBSTAR and SPLIT flags are enabled.)

This connector can sync multiple files by using glob-style patterns, rather than requiring a specific path for every file. This enables:

  • Referencing many files with just one pattern, e.g. ** would indicate every file in the folder.
  • Referencing future files that don't exist yet (and therefore don't have a specific path).

You must provide a path pattern. You can also provide many patterns split with | for more complex directory layouts.

Each path pattern is a reference from the root of the folder, so don't include the root folder name itself in the pattern(s).

Some example patterns:

  • ** : match everything.
  • **/*.csv : match all files with specific extension.
  • myFolder/**/*.csv : match all csv files anywhere under myFolder.
  • */** : match everything at least one folder deep.
  • */*/*/** : match everything at least three folders deep.
  • **/file.*|**/file : match every file called "file" with any extension (or no extension).
  • x/*/y/* : match all files that sit in sub-folder x -> any folder -> folder y.
  • **/prefix*.csv : match all csv files with specific prefix.
  • **/prefix*.parquet : match all parquet files with specific prefix.

Let's look at a specific example, matching the following folder layout (MyFolder is the folder specified in the connector config as the root folder, which the patterns are relative to):

MyFolder
-> log_files
-> some_table_files
-> part1.csv
-> part2.csv
-> images
-> more_table_files
-> part3.csv
-> extras
-> misc
-> another_part1.csv

We want to pick up part1.csv, part2.csv and part3.csv (excluding another_part1.csv for now). We could do this a few different ways:

  • We could pick up every csv file called "partX" with the single pattern **/part*.csv.
  • To be a bit more robust, we could use the dual pattern some_table_files/*.csv|more_table_files/*.csv to pick up relevant files only from those exact folders.
  • We could achieve the above in a single pattern by using the pattern *table_files/*.csv. This could however cause problems in the future if new unexpected folders started being created.
  • We can also recursively wildcard, so adding the pattern extras/**/*.csv would pick up any csv files nested in folders below "extras", such as "extras/misc/another_part1.csv".

As you can probably tell, there are many ways to achieve the same goal with path patterns. We recommend using a pattern that ensures clarity and is robust against future additions to the directory structure.

User Schema​

When using the Avro, Jsonl, CSV or Parquet format, you can provide a schema to use for the output stream. Note that this doesn't apply to the Document file type format.

Providing a schema allows for more control over the output of this stream. Without a provided schema, columns and datatypes will be inferred from the first created file in the bucket matching your path pattern and suffix. This will probably be fine in most cases but there may be situations you want to enforce a schema instead, e.g.:

  • You only care about a specific known subset of the columns. The other columns would all still be included, but packed into the _ab_additional_properties map.
  • Your initial dataset is quite small (in terms of number of records), and you think the automatic type inference from this sample might not be representative of the data in the future.
  • You want to purposely define types for every column.
  • You know the names of columns that will be added to future data and want to include these in the core schema as columns rather than have them appear in the _ab_additional_properties map.

Or any other reason! The schema must be provided as valid JSON as a map of {"column": "datatype"} where each datatype is one of:

  • string
  • number
  • integer
  • object
  • array
  • boolean
  • null

For example:

  • {"id": "integer", "location": "string", "longitude": "number", "latitude": "number"}
  • {"username": "string", "friends": "array", "information": "object"}

File Format Settings​

CSV​

Since CSV files are effectively plain text, providing specific reader options is often required for correct parsing of the files. These settings are applied when a CSV is created or exported so please ensure that this process happens consistently over time.

  • Header Definition: How headers will be defined. User Provided assumes the CSV does not have a header row and uses the headers provided and Autogenerated assumes the CSV does not have a header row and the CDK will generate headers using for f{i} where i is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can set a value for the "Skip rows before header" option to ignore the header row.
  • Delimiter: Even though CSV is an acronym for Comma Separated Values, it is used more generally as a term for flat file data that may or may not be comma separated. The delimiter field lets you specify which character acts as the separator. To use tab-delimiters, you can set this value to \t. By default, this value is set to ,.
  • Double Quote: This option determines whether two quotes in a quoted CSV value denote a single quote in the data. Set to True by default.
  • Encoding: Some data may use a different character set (typically when different alphabets are involved). See the list of allowable encodings here. By default, this is set to utf8.
  • Escape Character: An escape character can be used to prefix a reserved character and ensure correct parsing. A commonly used character is the backslash (\). For example, given the following data:
Product,Description,Price
Jeans,"Navy Blue, Bootcut, 34\"",49.99

The backslash (\) is used directly before the second double quote (") to indicate that it is not the closing quote for the field, but rather a literal double quote character that should be included in the value (in this example, denoting the size of the jeans in inches: 34" ).

Leaving this field blank (default option) will disallow escaping.

  • False Values: A set of case-sensitive strings that should be interpreted as false values.
  • Null Values: A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field.
  • Quote Character: In some cases, data values may contain instances of reserved characters (like a comma, if that's the delimiter). CSVs can handle this by wrapping a value in defined quote characters so that on read it can parse it correctly. By default, this is set to ".
  • Skip Rows After Header: The number of rows to skip after the header row.
  • Skip Rows Before Header: The number of rows to skip before the header row.
  • Strings Can Be Null: Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself.
  • True Values: A set of case-sensitive strings that should be interpreted as true values.

Parquet​

Apache Parquet is a column-oriented data storage format of the Apache Hadoop ecosystem. It provides efficient data compression and encoding schemes with enhanced performance to handle complex data in bulk. At the moment, partitioned parquet datasets are unsupported. The following settings are available:

  • Convert Decimal Fields to Floats: Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended.

Avro​

The Avro parser uses the Fastavro library. The following settings are available:

  • Convert Double Fields to Strings: Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers.

JSONL​

There are currently no options for JSONL parsing.

Excel​

There are currently no options for Excel parsing.

Document File Type Format​

The Document file type format is a special format that allows you to extract text from Markdown (md), text (txt), PDF (pdf), Word (docx), and PowerPoint (pptx) files. If selected, the connector extracts text from the documents and outputs it as a single field named content. The document_key field holds a unique identifier for the processed file, which you can use as a primary key. The content of the document contains Markdown formatting converted from the original file format. Each file matching the defined glob pattern must be one of these file types.

One record will be emitted for each document. Keep in mind that large files can emit large records that might not fit into every destination as each destination has different limitations for string fields.

Copy Raw Files Configuration​

info

The raw file replication feature has the following requirements and limitations:

  • Supported Airbyte Versions:
    • Cloud: All Workspaces
    • OSS / Enterprise: v1.2.0 or later
  • Max File Size: 1GB per file
  • Supported Destinations:
    • S3: v1.4.0 or later

Copy raw files without parsing their contents. Bits are copied into the destination exactly as they appeared in the source. Recommended for use with unstructured text data, non-text and compressed files.

Format options will not be taken into account. Instead, files will be transferred to the file-based destination without parsing underlying data.

Preserve Sub-Directories in File Paths​

If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled.

Multi-Site Support​

By providing a url to the site URL field, the connector will be able to access the files in the specific sharepoint site. The site url should be in the format https://<tenant_name>.sharepoint.com/sites/<site>. If no field is provided, the connector will access the files in the main site. To have the connector iterate all sub-sites provide the site url as https://<tenant_name>.sharepoint.com/sites/.

Supported sync modes​

The Microsoft SharePoint source connector supports the following sync modes:

FeatureSupported?(Yes/No)
Full Refresh SyncYes
Incremental SyncYes

Supported Streams​

There are no predefined streams. You define each stream on the source setup page, and its schema is based on the content of the files it matches.

Performance considerations​

The connector is restricted by normal Microsoft Graph requests limitation.

Data type map​

Integration TypeAirbyte Type
stringstring
numbernumber
arrayarray
objectobject

IP allow list​

If you use Airbyte Cloud and your organization restricts access to specific IPs, add the Airbyte Cloud IP addresses to your allow list.

Reference​

Config fields reference

Field
Type
Property name
object
credentials
array<object>
streams
object
delivery_method
string
folder_path
string
search_scope
string
site_url
string
start_date

Changelog​

Expand to review
VersionDatePull RequestSubject
0.10.52026-11-0389687Keep syncing drive files and report a clear error when the deprecated Microsoft Graph sharedWithMe API stops returning shared items
0.10.42025-08-2165118Decertify connector
0.10.32025-07-1360562Update dependencies
0.10.22025-05-1059113Update dependencies
0.10.12025-05-0759711Fix edege case for unexcpeted uris.
0.10.02025-05-0759700Promoting release candidate 0.10.0-rc.1 to a main version.
0.10.0-rc.12025-05-0557507Adapt file-transfer records to latest protocol, requires platform >= 1.7.0, destination-s3 >= 1.8.0
0.9.32025-04-1958471Update dependencies
0.9.22025-04-1257920Update dependencies
0.9.12025-04-0557065Update dependencies
0.9.02025-04-0155912Provide ability to iterate all sharepoint sites
0.8.22025-03-2956712Update dependencies
0.8.12025-03-2256014Update dependencies
0.8.02025-03-1254658Provide ability to sync other sites than Main sharepoint site
0.7.22025-03-0855427Update dependencies
0.7.12025-03-0154749Update dependencies
0.7.02025-02-2754200Add advanced Oauth
0.6.12025-02-2245062Update dependencies
0.6.02025-02-2054140Implement file transfer mode to move raw files
0.5.22024-08-2445646Fix: handle wrong folder name
0.5.12024-08-2444660Update dependencies
0.5.02024-08-1942983Migrate to CDK v4.5.1
0.4.52024-08-1944382Update dependencies
0.4.42024-08-1243743Update dependencies
0.4.32024-08-1043565Update dependencies
0.4.22024-08-0343235Update dependencies
0.4.12024-07-2742704Update dependencies
0.4.02024-07-2542008Migrate to CDK v3.5.3
0.3.12024-07-2042143Update dependencies
0.3.02024-07-1642007Migrate to CDK v2.4.0
0.2.112024-07-1341688Update dependencies
0.2.102024-07-1041589Update dependencies
0.2.92024-07-0640917Update dependencies
0.2.82024-06-2640539Update dependencies
0.2.72024-06-2540357Update dependencies
0.2.62024-06-2440233Update dependencies
0.2.52024-06-2239987Update dependencies
0.2.42024-05-2938675Avoid error on empty stream when running discover
0.2.32024-04-1737372Make refresh token optional
0.2.22024-03-2836573Update QL to 400
0.2.12024-03-2236381Unpin CDK
0.2.02024-03-0635830Add fetching shared items
0.1.02024-01-2533537New source