---
title: "SharePoint"
description: "Stream SharePoint lists, document libraries, file contents and site metadata into Streamkap through Microsoft Graph, with your own Microsoft Entra app."
---

The SharePoint source reads the lists and document libraries you define, on any number of sites, and writes each to its own topic, `source_<id>.sharepoint.list_<name>` or `source_<id>.sharepoint.library_<name>`. An item or file that is edited, added or removed in SharePoint arrives as an update, an insert or a delete. You sign in with a Microsoft Entra app in your own tenant, as the app or as a user who connects through it.

import Callout from 'blume/components/content/Callout.astro';

:::info
This connector is in alpha. See [API sources](/api-sources) for how API sources work and what alpha means.
:::

## What Syncs

* **`list_<name>`**: one topic per list definition, with a row per list item and a column per SharePoint column, of every column type. A document library's own columns are read as a list.
* **`library_<name>`**: one topic per library definition, with a row per file and folder: its metadata, not its contents.
* **`file_rows_<name>`** *(optional, per library)*: the rows of the library's tabular files. See [File Contents](#file-contents).
* **`file_text_<name>`** *(optional, per library)*: the text of the library's documents, in chunks. See [File Contents](#file-contents).
* **`file_permissions_<name>`** *(optional, per library)*: each file's and folder's sharing permissions. See [Permissions](#permissions).
* **`sites`** *(optional)*: one row per site your definitions name: `id`, `name`, `display_name`, `web_url`, `hostname`, `is_root`, `created_date_time`, `last_modified_date_time`.
* **`lists`** *(optional)*: every list and library of those sites, keyed `<site_id>|<list_id>`: `name`, `display_name`, `description`, `web_url`, `template`, `is_hidden`, `is_system` and the dates. A list created later appears here and is read only once a definition names it.
* **`columns`** *(optional)*: every column of each list a definition names, hidden ones included: its internal name, the internal name decoded, the display name in its own script, `type`, `type_settings` (JSON text), `is_multi_value`, `hidden`, `read_only`, `indexed`, `required`, `column_group` and `column_name`, the topic column that list's rows carry it as. See [Column Names](#column-names).
* **`content_types`** *(optional)*: each such list's content types: `name`, `description`, `group`, `hidden`, `base_id`, `base_name`.
* **`site_pages`** *(optional)*: each named site's pages: `name`, `title`, `web_url`, `page_layout`, `publishing_level`, the authors and the dates. Page bodies are not read.

The **Site metadata** preset adds `sites`, `lists`, `columns` and `content_types`. It leaves out `site_pages`.

Every `list_<name>` record has these columns, then one column per SharePoint column:

| Column | What it holds |
| --- | --- |
| `id` | The Kafka key: the list item's ID |
| `etag`, `created_date_time`, `last_modified_date_time`, `web_url` | As Microsoft Graph serves them |
| `created_by`, `last_modified_by`, `parent_reference` | JSON text |
| `content_type_id`, `content_type_name` | The item's content type |
| `is_folder` | Whether the item is a folder |
| `site_id`, `list_id` | The site and list the item came from |
| `streamkap_changed_at` | When Streamkap read the item, in UTC |

Every `library_<name>` record has `id`, `name`, `size`, `etag`, `ctag`, `mime_type`, `hashes` (JSON text), `child_count`, `is_folder`, `is_package`, `package_type`, `parent_id`, `web_url`, `created_date_time`, `last_modified_date_time`, `created_by`, `last_modified_by`, `publication_level`, `publication_version_id`, `malware`, `sharepoint_ids`, `file_system_info`, `site_id`, `drive_id`, `streamkap_changed_at` and `contents_status`. With file contents on, `contents_status` says what Streamkap made of the file: `read`, `not_matched` (outside `file_pattern`), `unsupported` (no reader for its type) or `too_large` (past `max_file_bytes`). Without contents it is null.

There is no **Backfill start date**: a read starts from the whole list or library, and every poll after it carries only what changed.

## Prerequisites

* A Microsoft 365 tenant with SharePoint Online, and a Microsoft Entra admin who can register an app and grant admin consent.
* The tenant's Microsoft cloud: see [Clouds](#clouds).
* One of the three ways to sign in, with what each needs:
  * **App with a client secret**: an app registration with a client secret.
  * **App with a certificate**: an app registration with a certificate and its private key.
  * **Connect with SharePoint (sign in as a user)**: an app registration with a client secret, and a Microsoft user who can read the sites.

For the two app modes, the app reads with **application permissions**, either `Sites.Selected` with a read grant on each site, or `Sites.Read.All`.

No SharePoint add-on or higher plan is needed to read lists, libraries and files. Your Microsoft 365 licence count sets the throttling budget, not what the source can read: see [Rate Limits](#rate-limits). Sharing permissions need an extra Microsoft Graph permission: see [Permissions](#permissions).

## Clouds

**Cloud** picks the Microsoft hosts Streamkap talks to. Every host comes from this table, never from text you type, and a token from one cloud does not open another cloud's Graph.

| **Cloud** | Sign-in host | Graph host | SharePoint site hosts |
| --- | --- | --- | --- |
| **Worldwide (including GCC)** | `login.microsoftonline.com` | `graph.microsoft.com` | `<tenant>.sharepoint.com` |
| **US Government L4 (GCC High)** | `login.microsoftonline.us` | `graph.microsoft.us` | `<tenant>.sharepoint.us` |
| **US Government L5 (DoD)** | `login.microsoftonline.us` | `dod-graph.microsoft.us` | `<tenant>.sharepoint-mil.us` or `<tenant>.sharepoint.us` |
| **China (operated by 21Vianet)** | `login.chinacloudapi.cn` | `microsoftgraph.chinacloudapi.cn` | `<tenant>.sharepoint.cn` |

A GCC tenant is **Worldwide**. A site URL on another cloud's SharePoint host is refused, naming the cloud to choose.

## Microsoft Entra Setup

Do this in the [Microsoft Entra admin center](https://entra.microsoft.com/) of the tenant that owns the SharePoint sites.

### 1. Register the App

* Under **App registrations**, create a registration.
* On its **Overview** page, copy the **Application (client) ID** and the **Directory (tenant) ID**. Streamkap also accepts a domain verified in your tenant, such as `contoso.onmicrosoft.com`, for the tenant. The aliases `common`, `organizations` and `consumers` are refused: enter your own tenant.

### 2. Add a Credential

**Client secret**

* Under **Certificates & secrets → Client secrets**, create a secret and copy its **Value**, not its **Secret ID**.
* A secret expires. Create a new one before then and paste it with **Replace**.

**Certificate**

* Create a certificate with an **RSA** key of 2048 bits or more. Streamkap signs each sign-in with it (PS256), so other key types are refused.
* Under **Certificates & secrets → Certificates**, upload the certificate's public part (`.cer` or `.pem`).
* In Streamkap, paste the certificate with its private key as either:
  * a **PEM** file holding both the `-----BEGIN CERTIFICATE-----` block and the private key block, or
  * a **PFX** (`.pfx` or `.p12`) file encoded as base64, for example with `base64 -i cert.pfx`.
* If the PFX or the private key has a password, enter it as **Certificate password**. Leave it empty when there is none.
* Streamkap checks that the certificate matches its private key and is valid now, and refuses one that is expired or not yet valid before it sends anything. A certificate within 30 days of expiry passes Test connection with a warning naming its expiry date. The input is at most 64 KiB. The private key never leaves Streamkap.
* A certificate expires. Upload a new one to the app before then and paste it with **Replace**.

### 3. Grant the App Access to the Sites

Under **API permissions**, choose **Add a permission → Microsoft Graph → Application permissions** and add one of:

* **`Sites.Selected`**: the app reads only the sites you grant it, and nothing else. This is the least access. It reads nothing until you also grant it each site, below.
* **`Sites.Read.All`**: the app reads every site in the tenant. No per-site step.

Then choose **Grant admin consent** for the tenant.

With **`Sites.Selected`**, grant the app **read** on each site it should sync. Someone who can manage site permissions, holding `Sites.FullControl.All`, makes the grant, once per site, in either of two ways.

* **Graph request**, for example in [Graph Explorer](https://developer.microsoft.com/graph/graph-explorer) signed in as that admin. First read the site's ID, which is `<host>,<site collection id>,<site id>`:

  ```
  GET https://graph.microsoft.com/v1.0/sites/contoso.sharepoint.com:/sites/Finance
  ```

  Then grant the app read on it:

  ```
  POST https://graph.microsoft.com/v1.0/sites/{site-id}/permissions
  ```

  ```json
  {
    "roles": ["read"],
    "grantedToIdentities": [
      {"application": {"id": "<Application (client) ID>", "displayName": "Streamkap"}}
    ]
  }
  ```

* **PnP PowerShell**:

  ```powershell
  Grant-PnPAzureADAppSitePermission -AppId "<Application (client) ID>" -DisplayName "Streamkap" -Site "https://contoso.sharepoint.com/sites/Finance" -Permissions Read
  ```

On a national cloud, use that cloud's Graph host from [Clouds](#clouds) in the request.

A grant on a single list rather than the whole site also works: make it with `POST /sites/{site-id}/lists/{list-id}/permissions` and the same body. Microsoft then refuses the site itself, so name the site by its **`site_id`** (from the `GET` above) and the list by its ID (a GUID, from the list's settings page) in the definition, and Streamkap reads the list directly.

Without the grant, Microsoft answers **Access denied** and the test names the grant to make: see [Troubleshooting](#troubleshooting).

:::note
Reading the files' sharing permissions needs more than the above: see [Permissions](#permissions).
:::

### 4. Connect as a User (delegated mode only)

Use this when your admin does not allow application permissions but lets a user consent. Streamkap then reads what that user can open, and nothing more.

* In the app registration, under **Authentication**, add a **Web** platform with the redirect URI that the Streamkap form shows beside **Connect with SharePoint**. The form shows it once you choose that mode.
* Under **API permissions**, add the Microsoft Graph **Delegated** permission `Sites.Read.All`. An admin may need to consent, depending on your tenant's user-consent settings.
* Create a client secret as in [step 2](#2-add-a-credential). Delegated mode takes a secret, not a certificate.

Streamkap asks Microsoft for `openid`, `profile`, `offline_access` and `Sites.Read.All` in your cloud. There is no sharing step: the connected user reads what that user can open. Microsoft replaces the refresh token on every use and expires it after 90 days unused, or when the user's password is reset, so the user must stay able to sign in. Connect as a user who keeps read access to the sites.

## Streamkap Setup

### 1. Create the Source

* Navigate to [Add Connectors](https://app.streamkap.com/connectors/add?tab=Sources).
* Choose **SharePoint**.

### 2. Connection Settings (Auth Tab)

* **Source name**: A unique name for this source.
* **Authentication**: **App with a client secret** (the default), **App with a certificate** or **Connect with SharePoint (sign in as a user)**.
* **Cloud**: See [Clouds](#clouds). The default is **Worldwide (including GCC)**.
* **Tenant ID**: The Directory (tenant) ID, or a domain verified in your tenant.
* **Application (client) ID**: From the app registration's **Overview** page.

**App with a client secret**

* **Client secret**: The secret's **Value**.

**App with a certificate**

* **Certificate**: The PEM with the certificate and its private key, or the PFX as base64.
* **Certificate password**: Only if the PFX or the key has one.

**Connect with SharePoint (sign in as a user)**

* **Client secret**: The secret's **Value**.
* Click **Connect with SharePoint**. Streamkap first checks that Microsoft holds your tenant in the cloud you chose, and names the mistake on the form if not. In Microsoft's window, sign in as the user and accept every permission. The form then shows **Connected** and **Connected as** with the Microsoft account.
* Streamkap lists no sites for a user connection, so type each site URL and list title in **SharePoint sources** yourself. On a saved source that signs in as the app, **Resources** also offers the lists and libraries Streamkap can see; picking one still needs a matching entry in **SharePoint sources**.
* If the connection is revoked, goes unused for 90 days, or ends with a password reset, click **Connect with SharePoint** again.

* **SharePoint sources**: The lists and libraries to sync, as a JSON list. See [Definitions](#definitions).
* **Resources**: Select every resource each definition makes, and the metadata resources you want. Every resource of a definition must be selected, and every selected `list_<name>`, `library_<name>`, `file_rows_<name>`, `file_text_<name>` or `file_permissions_<name>` must be made by a definition. **Add a preset** → **Site metadata** adds the four metadata resources.

For the two app modes, **Test connection** signs in as the app, opens each site your definitions name, and finds each list or library in it and the columns you name in `fields`. A refusal is worded for the control that fixes it and lists what exists. It checks the first 10 sites, since each costs Graph reads against your tenant's budget; **Test access** still reads every selected resource. For a user connection, **Test connection** sends nothing and **Test access** runs the same checks. See [Test connection and Test access](/api-sources#test-connection-and-test-access). Click **Next**.

### 3. Review and Create

Check the summary and click **Create**. On save, Streamkap adds the pinned IDs to each definition: see [Definitions](#definitions). Then send the topics to a destination: see [Send topics to a destination](/api-sources#send-topics-to-a-destination). One Entra app can back several SharePoint sources, for example one per site; see [One source per vendor account](/api-sources#one-source-per-vendor-account).

## Definitions

**SharePoint sources** is a JSON list of at most 100 definitions, at most 1 MiB of text. Each entry reads one list or library on one site:

* **`name`**: Lowercase letters, digits and underscores, starting with a letter, at most 41 characters, unique. It is ASCII on purpose, so a topic never depends on a title in another script. `name` makes the resource, `list_<name>` or `library_<name>`.
* **`kind`**: `list` for items, or `library` for a document library's files.
* **`site_url`**: The site's address, such as `https://contoso.sharepoint.com/sites/Finance`. Paste any address on it: a link to a list view, a library view or a page is cut back to its site. A sharing link (`/:x:/…`) names a file, so it is refused. The `https://` may be left off. Or give **`site_id`**, the Graph site ID.
* **`list`**: The list's or library's title as SharePoint shows it, in any script, or its ID (a GUID). The title matches the display name or the address name, ignoring case. If two lists on the site share a title, the error names both IDs: use the ID.

A list takes these, optionally:

* **`fields`**: Internal names of columns to read besides the visible ones, such as a hidden column, or a lookup or person column's looked-up value. At most 500 names, and at most 12 of them lookup or person columns, since Microsoft Graph returns at most 12 looked-up values in one read. To find an internal name, open **List settings** and click the column: its address ends `Field=<internal name>`.
* **`include_hidden`** *(default `false`)*: Read every hidden column.

A library takes these, optionally. See [File Contents](#file-contents) and [Permissions](#permissions).

* **`contents`**: `rows` or `text`. The default is `none`.
* **`file_pattern`**, **`max_file_bytes`**: With `contents`.
* **`permissions`** *(default `false`)*.

```json
[
  {"name": "orders", "kind": "list", "site_url": "https://contoso.sharepoint.com/sites/Finance", "list": "Orders"},
  {"name": "customers", "kind": "list", "site_url": "https://contoso.sharepoint.com/sites/Sales", "list": "Customers", "include_hidden": true},
  {"name": "reports", "kind": "library", "site_url": "https://contoso.sharepoint.com/sites/Finance", "list": "Documents", "contents": "rows", "file_pattern": "*.csv"}
]
```

These read a list on one site, a list on another site with its hidden columns, and a library whose CSV files are parsed to rows. Select `list_orders`, `list_customers`, `library_reports` and `file_rows_reports` under **Resources**.

To read a library's own columns, add it as a `kind` of `list`: a library is a list, and `list_<name>` has its items.

On save, Streamkap adds the IDs it found to each definition (`site_id`, `list_id` and, for a library, `drive_id`), and refreshes `site_url` and `list` to the site's and list's current address and title. Leave these as written. Streamkap reads by the IDs, so:

* **Renaming** a list, library or site in SharePoint, in any language, changes nothing.
* **Changing which list or site** a definition reads is refused: save the other list or site as a **new definition** with a new `name`, and deselect the old resource. `name` is the resource, so a new name is a new topic. A title that has come to name a different list than the pinned one, for instance a list renamed and a new one created under the old title, is refused the same way.
* **Changing `fields` or `include_hidden`** is refused, because Microsoft keeps the column selection inside its change token: save the changed definition under a new name.
* **A deleted list or site** fails that resource. For a list, the message names what the site still holds. It deletes no rows. Restore it from the recycle bin, or remove the resource and define the replacement under a new name.
* A user connection is not pinned when you save. Each resource pins the IDs at its first poll and follows the same rules.

## File Contents

A library's `contents` is off by default. Turn it on per library with `"contents": "rows"` or `"contents": "text"` and select `file_rows_<name>` or `file_text_<name>`.

* **Which files**: A file is read when its name matches **`file_pattern`**, a file-name pattern such as `*.csv` that ignores case (default `*`, at most 256 characters), a reader exists for its type, and it fits **`max_file_bytes`**. The default is 100 MiB and the ceiling 1 GiB. A file over the cap is not read, its library row says `too_large`, and a log line gives its file ID.
* **When**: A file is read again only when its content changes. A change to its metadata alone reads nothing, except a rename, which reads the file again because every row carries its name.
* **Bytes are never stored**: Streamkap downloads each file to a temporary file, parses it and deletes it. The file's bytes never reach Kafka. The download goes over https to your cloud's SharePoint hosts only, without redirects, and without the source's token.
* **An unreadable file is skipped, not fatal**: A file that is malformed, encrypted, offered without a download, or that expands past what Streamkap reads into memory (256 MiB for the parts a parser holds whole, 64 MiB for one JSONL line) is skipped with a warning that gives its file ID. Rows it had before are deleted, and it is read again only once its content changes. A download that fails fails that poll, and the next poll tries again.
* **A download that ends short is not read**: when a file arrives with fewer bytes than SharePoint reports for it, even after a second download, Streamkap sends no row and deletes none, and reads the file again on the next poll. If it stays short for 3 polls, what arrived is read and the file is not downloaded again until it changes; its rows are sent, none is deleted, and a file that cannot be opened that way keeps the rows it had.
* **Changing the scope**: Editing `file_pattern` or `max_file_bytes` lists every file again, reads the newly matching ones, and deletes the rows of files that no longer match.

**rows**

`file_rows_<name>` parses tabular files into one record per data row. Every value is text.

| Format | Extensions | How it is read |
| --- | --- | --- |
| CSV, TSV | `.csv`, `.tsv` | UTF-8, or UTF-16 by its byte-order mark. The delimiter, one of `,` `;` tab or `\|`, is sniffed from the first 64 KiB. The first row is the header. |
| JSON Lines | `.jsonl`, `.ndjson` | One JSON value a line. An object's keys are the columns; any other value lands in `value`. |
| Excel | `.xlsx`, `.xlsm` | One sheet at a time, each its own rows. Formulas arrive as the value Excel last saved, never recalculated. The first row of each sheet is the header. |
| Avro | `.avro` | The record's fields are the columns. |
| Parquet | `.parquet` | The file's fields are the columns. |

Each record has `id` (the key, `<file_id>|<sheet>|<row>`, with `sheet` empty outside a workbook), `file_id`, `file_name`, `sheet`, `row_number`, `site_id`, `drive_id`, `streamkap_changed_at`, and one text column per header, named by the [same rule as Google Sheets headers](/google-sheets-source#column-names): a header in another script gets a deterministic ASCII name, and a repeated header is told apart by its column letter.

An edited file sends only the rows that changed, and deletes the rows its new version no longer has. A sheet removed from a workbook, and a deleted or no-longer-matching file, delete all their rows.

**text**

`file_text_<name>` cuts documents into text chunks of at most 32 KiB of UTF-8, cut between characters.

| Format | Extensions | How it is read |
| --- | --- | --- |
| PDF | `.pdf` | Page by page. A scanned PDF with no text layer gives no text: Streamkap does no OCR. |
| Word | `.docx` | Paragraphs, then table cells. |
| PowerPoint | `.pptx` | Every shape's text, slide by slide. |
| Plain text | `.txt`, `.md`, `.markdown`, `.csv`, `.tsv`, `.json`, `.jsonl`, `.log` | As text, with the encoding rule above. |

Each record has `id` (the key, `<file_id>|<chunk>`), `file_id`, `file_name`, `chunk_number`, `text`, `site_id`, `drive_id` and `streamkap_changed_at`. A changed file sends its changed chunks and deletes the chunks it lost.

A library takes one `contents` value. The file's own metadata is always in `library_<name>`.

## Permissions

`"permissions": true` on a library adds `file_permissions_<name>`: one record per file and folder, with the sharing permissions Microsoft reports for it.

* `id`, `name`, `is_folder`, `parent_id`, `site_id`, `drive_id`, `streamkap_changed_at`.
* `permissions`: every grant on the item as JSON text, sorted by permission ID, and `permission_count`.
* An item whose permissions change is read again even though its file did not change. An item that leaves the reader's scope is deleted.

Reading sharing needs more access than reading content. Give the app the Microsoft Graph application permission **`Sites.FullControl.All`** with admin consent, or, in delegated mode, connect as a user who can manage the library's permissions. `Sites.Selected` and `Sites.Read.All` are not enough: Microsoft serves the sharing changes to `Sites.FullControl.All` only, and the resource fails naming it. Without it, leave `permissions` off.

Each item's permissions cost 5 resource units of your tenant's budget, against 1 or 2 for a content read. See [Rate Limits](#rate-limits).

## Behavior & Limits

How changes and deletes arrive, how columns are named and valued, and the Microsoft budget the source shares.

### Changes and Deletes

Streamkap reads lists and libraries through Microsoft Graph's **delta** feature. The first poll lists everything; each later poll asks Microsoft only for what changed since the last one and sends those rows. A first read of a large list takes several polls and picks up where it stopped. Every row carries `streamkap_changed_at`, the time of the poll that read it.

Set the destination to upsert on `id`.

* **An item or file deleted in SharePoint** arrives as a record for its `id` with `__deleted = true`, and your destination marks the row deleted. A deleted folder is deleted too; its children arrive as deletes when Microsoft lists them, otherwise at the weekly reconciliation below. See [Deletes](/api-sources#deletes).
* **When Microsoft retires the delta token**, which it does when a token is too old or it must start over, Streamkap lists the whole list again. Up to 100,000 rows, it compares every row with what it sent before: only rows that changed are sent again, and a row no longer listed is deleted only after SharePoint answers "not found" for that item, since a list can leave out an item it still serves. At most 1,000 items are confirmed per poll; the rest are confirmed over the following polls, each of which lists the list again. Past 100,000 rows it sends every row again, which an upsert makes harmless, and the weekly reconciliation finds what was deleted in that gap.
* **Weekly reconciliation**: Once a week, for every list, library and permissions resource, Streamkap lists the IDs that exist and reads each ID it holds that is missing. Only Microsoft's "not found" answer deletes a row. Those deletes arrive up to a week after the inserts and updates. A list of a million items costs about 10,000 resource units to walk. If SharePoint refuses a confirming read, because the app's grant on the site was removed, nothing is deleted and the source fails naming the grant to restore.
* **Replays**: Microsoft may send an item more than once. While Streamkap holds a digest of every row (up to 100,000 rows), a row equal to what it last sent is not sent again.
* **Metadata resources** (`sites`, `lists`, `columns`, `content_types`, `site_pages`) are read again on every poll. Only new and changed rows are sent, and a row no longer there is deleted. `site_pages` asks SharePoint for its count: a site whose pages come back short of it is read once more, and if still short, none of its pages is deleted that read. A site or list that the app cannot read, or that no longer exists, is skipped with a warning while the others are read, and the rows it held are kept. When every part is refused, the poll fails with the fix.

### Column Names

A list's columns are named from the column's **internal name**, which SharePoint keeps in ASCII and never changes when you rename the column, so a rename in SharePoint changes no topic column. SharePoint writes any other character as `_xHHHH_`.

* Names are lowercase. Runs of other characters become `_`. `_xHHHH_` escapes are kept as written: `Order_x0020_Id` (a column shown as **Order Id**) is `order_x0020_id`.
* A name that repeats another column's name once lowercased, or equals a fixed column such as `id`, `etag`, `site_id`, `list_id` or `streamkap_changed_at`, or that SharePoint cut to fit, gets `_` and the first 8 hexadecimal digits of its column's ID. Every column that collides gets it, so no name depends on the order SharePoint lists the columns in.
* A lookup or person column also gets `<column>_lookup_id`, the ID of the item it points at. Name the column in `fields` to read the looked-up value too.
* A column added to the list later appears as a new topic column. Your destination adds the column if it [evolves its schema](/schema-evolution-support).

To map a topic column back to its SharePoint column, read the `columns` resource: its `column_name` is the topic column, `lookup_column_name` the `_lookup_id` one, `name` the internal name, `decoded_name` that name with the escapes turned back into characters, and `display_name` the name in its own script.

### Values

* **Number and currency columns** are `double`. **Yes/No columns** are `boolean`. Every other column is text.
* **Dates** arrive as Microsoft Graph serves them, an ISO UTC instant, with nothing converted. A date-only column is the UTC instant of the site's local midnight, since Graph v1.0 does not expose the site's time zone.
* **Calculated columns** arrive as text, whatever they calculate. An error such as `#VALUE!` is text.
* **Multi-value and structured values**, such as multiple choice, lookups, people, managed metadata, hyperlinks, images and locations, arrive as JSON text.
* **A column Microsoft leaves out of an item**, as it does a cleared value, is null on that row.
* Every column a definition reads is on every row.

Hidden columns are read only when you set `include_hidden` or name them in `fields`.

### Rate Limits

SharePoint meters each app by resource units per tenant, and every app of your tenant shares one budget. A single-item read, a download and a delta read with a token cost 1 unit; a listing or a first delta read costs 2; a permissions read costs 5. The smallest tenants have 1,250 units a minute per app.

Streamkap sends at most 2 requests a second, one at a time, and waits out each throttle Microsoft sends (HTTP 429 or 503 with `Retry-After`). A 503 that keeps coming is how SharePoint blocks an app: see [Troubleshooting](#troubleshooting). SharePoint sends no quota headers, so Streamkap cannot see how much of Microsoft's per-minute or 24-hour budget is left.

Streamkap identifies itself to Microsoft with a `User-Agent` of `ISV|Streamkap|…`, as Microsoft asks of integrations, so a throttle names it.

### Per-Resource Failures

A 403 from Microsoft Graph pauses only the resource it came from, and a 404 for a deleted or moved site, list or library does too. Its status names the fix, and the other resources keep syncing. `file_permissions_<name>` names `Sites.FullControl.All`. A rejected app credential or user connection affects the whole source. A throttle (429 or 503) is waited out. See [Connector status](/api-sources#connector-status).

## Editing the Source

* **Credentials**: click **Replace** on the client secret, the certificate or its password and save. For a user connection, click **Connect with SharePoint** again.
* **Changing the authentication mode** needs that mode's credentials in the same save.
* **Definitions**: see [Definitions](#definitions) for what a rename or a change does. Adding a definition and selecting its resources reads that list or library in full.

Everything else follows [Editing an API source](/api-sources#editing-an-api-source).

## Troubleshooting

| Message starts | Cause | Fix |
| --- | --- | --- |
| "Microsoft Entra Conditional Access blocked Streamkap's sign-in …" | A Conditional Access policy blocks the sign-in | Ask your Entra admin to exclude the app from the policy for workload identities, or to allow Streamkap's IP addresses in a trusted named location, then test again. Nothing on the form fixes it. |
| "The client secret has expired …" | The secret passed its expiry | Create a new secret under **Certificates & secrets**, paste its **Value** with **Replace** and save |
| "Microsoft Entra rejected the client secret …" | The Secret ID was pasted, or the secret is wrong | Paste the secret's **Value**, not its **Secret ID** |
| "Client secret holds a space or an invisible character …" | The paste carried a hidden character | Copy the **Value** again and paste it |
| "Certificate expired on …", "Microsoft Entra holds this certificate as expired …" | The certificate passed its expiry | Upload a new certificate to the app and paste it with its private key |
| "Certificate is not valid until …" | The certificate's start date is ahead | Use a certificate that is valid now |
| "Microsoft Entra did not accept the certificate …" | The certificate's public part is not on the app | Upload it under **Certificates & secrets → Certificates**, or paste the certificate that is there |
| "Certificate holds no readable PEM certificate …", "… holds the certificate but no private key …", "… is neither a PEM file nor a PFX file encoded as base64 …", "… does not match its private key …", "… password … " | The certificate input is not a PEM with both parts or a base64 PFX, or the pair does not match, or the password is wrong or missing | Paste the PEM text with both blocks, or the output of `base64 -i cert.pfx`, with the password if it has one |
| "Certificate's private key must be RSA of 2048 bits or more …" | The key is another type or too short | Create an RSA certificate of 2048 bits or more, upload it and paste it |
| "Certificate is larger than 64 KiB …" | More than one certificate and key was pasted | Paste one certificate and its private key |
| "Microsoft Entra has no enabled app with this Application (client) ID in the tenant …" | Wrong ID, or the app is disabled or lives in another tenant | Copy the **Application (client) ID** from the app's **Overview** page |
| "The app has no enterprise application in this tenant yet …" | Admin consent was never granted | Under **API permissions**, choose **Grant admin consent**, then test again |
| "Microsoft has no tenant … in the … cloud …", "Your tenant is not in the … cloud …", "Tenant … is in another Microsoft cloud …" | Wrong Tenant ID, or the tenant is in another cloud | Check the **Tenant ID**, or choose the right **Cloud** |
| "Microsoft Graph refused Streamkap's sign-in when reading … (401 …)" | A token from one cloud does not open another cloud's Graph | Choose the cloud your tenant is in under **Cloud** |
| "The app has no Microsoft Graph application permission …" | The app has no `Sites.Selected` or `Sites.Read.All` application permission, or no consent | Add the permission under **API permissions** and grant admin consent |
| "… the app … cannot read … (403 …)" | With `Sites.Selected`, the app has no read grant on the site | Grant the app read on the site with the Graph request or the PnP command in [step 3](#3-grant-the-app-access-to-the-sites), or give the app `Sites.Read.All` |
| "… there is no SharePoint site at … that the app can see" | The address is wrong, or the app has no access to the site | Copy the site's address up to its name, such as `https://contoso.sharepoint.com/sites/Finance`, and check the grant |
| "… no list or library '…' in site '…'. Lists: … Libraries: … If you renamed it, enter its new title." | The title names nothing on the site; the message lists what exists | Correct `list`, or use the list's ID |
| "… '…' matches N lists in site …" | Several lists share the title | Enter the ID of the one to read as `list` |
| "… '…' is a list, not a document library …" | `kind` is `library` for a list | Set `"kind": "list"` and select `list_<name>` |
| "… has no column(s) …. fields takes internal names. Columns: …" | `fields` names something that is not an internal name | Use an internal name from the message |
| "… fields names N lookup or person columns …" | More than 12 lookup or person columns in `fields` | Keep 12, and read the rest from the lists they point at, as their own definitions |
| "… is a SharePoint site in the … cloud; choose it under Cloud.", "… the site must be on …" | The site is on a different cloud's host, or not on SharePoint | Choose the matching **Cloud**, or fix the address |
| "… site_url is a sharing link …" | The address names a file or folder | Open the site and copy its address from the address bar |
| "SharePoint sources is not valid JSON …", "… has unsupported key(s) …", "… is defined twice …" | The definitions break the format | Fix the JSON, use only the keys in [Definitions](#definitions), give each definition its own `name` |
| "Resources select …, which no definition defines", "Resources leave out …, which a definition reads" | **SharePoint sources** and **Resources** disagree | Select every resource each definition makes and define every selected one |
| "… site …, which Streamkap pinned, no longer exists …", "… (list_id …) no longer exists in site …" | The pinned site or list was deleted | Restore it, or remove the resource and define the replacement under a new name |
| "… reads list '…' …, and '…' is another list …", "… now names another list than the one it was saved for …" | A definition now points at another list than the one it first read | Restore it, or save the other list under a new name |
| "… changed since it was saved; a Graph delta token keeps the selection it was made with …" | `fields` or `include_hidden` changed under the same name | Restore it, or save the change under a new name |
| "Microsoft Graph denied access to this site, list or library …" | The app lost its grant on the site, or the connected user lost access | Restore the `Sites.Selected` grant or `Sites.Read.All`, or give the user access |
| "The site, list or library this resource reads no longer exists or moved." | A pinned site, list or library was deleted or moved | Restore it from the recycle bin, or remove the definition and add the new location under a new name |
| "Reading sharing permissions needs Sites.FullControl.All …" | The app cannot read `file_permissions_<name>` | Give the app `Sites.FullControl.All` with admin consent, or turn `permissions` off for that library |
| "Microsoft Graph refused the source's access token …" | The app registration, its secret or certificate, or the user connection is no longer valid | Check the app still exists with its credential, or reconnect |
| "Microsoft Graph denied reading item … while confirming deletes; nothing is tombstoned …" | The grant was removed during the weekly reconciliation | Restore the grant. Nothing was deleted. |
| "Microsoft returned no refresh token …", "Microsoft granted the connection without Sites.Read.All …" | **Connect with SharePoint**: a permission was not accepted, or the app lacks the delegated permission | Add the delegated `Sites.Read.All` permission, get admin consent if asked, and connect again accepting every permission |
| "Connect with SharePoint to sign in as the user …" | Delegated mode with no connection yet | Click **Connect with SharePoint** |
| "Reconnect with Microsoft: the connection was revoked, expired after 90 days unused, or ended when the user's password was reset or the user was disabled." | The user connection ended | Click **Connect with SharePoint** again, as a user who can read the sites |
| "Streamkap lists sites only as the app …" | Site discovery was asked on a user connection | Type the site URL and the list's title in **SharePoint sources** |
| "SharePoint throttled the source (HTTP 429 or 503) …" | The tenant's apps used up their shared budget | Nothing: Streamkap waits out Microsoft's `Retry-After` and the next sync retries. If 503s keep coming, SharePoint may have blocked the app: check the Microsoft 365 Message Center and lower other apps' load on the tenant. |
| "Streamkap checked the definitions of the first 10 of N sites here …" | A warning: more than 10 sites in one source | Nothing: **Test access** still reads every selected resource |

## Related Documentation

- [API sources](/api-sources) - how API sources work, Test access, editing, deletes and status
- [Google Sheets](/google-sheets-source) - sheets, ranges, named ranges and tables
