> For the complete documentation index, see [llms.txt](https://docs.datalogz.io/guides/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.datalogz.io/guides/organizational-setup/connector-onboarding-guide/sharepoint.md).

# SharePoint

This guide sets up the SharePoint connector, which inventories your SharePoint sites, document libraries, and Excel workbooks through the Microsoft Graph API. Datalogz reads metadata only; it never accesses the data inside your files.

There are two ways to authenticate. **App mode** (recommended) uses an application registration with client credentials. **User mode** signs in as a user via Microsoft's device-code flow.

### Step 1: Register an application in Microsoft Entra (app mode)

1. [Register a new application](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app) in the Microsoft Entra portal. Note the **Application (client) ID** and **Directory (tenant) ID**.
2. Under **API permissions**, add the Microsoft Graph **application** permissions **Sites.Read.All** and **Files.Read.All**, and grant admin consent.
3. Under **Certificates & secrets**, create a **client secret** and copy its value immediately. It cannot be viewed again later.

### Step 2: Create the connector in Control Tower

1. Sign in to Datalogz Control Tower and go to **Settings > BI Connectors**.
2. Click **New Connector** and select **SharePoint**.
3. Choose your authentication mode. For app mode, enter the **Directory (Tenant) ID**, **Application (Client) ID**, and **client secret**. For user mode, follow the device-code sign-in prompts.
4. Choose the scope: sync **all sites** in the tenant or an **allowlist** of specific sites.
5. Enter a **Connector Name** and select the snapshot frequency.
6. Click **Next**, then **Confirm and Finish**.

{% hint style="info" %}
Control Tower ingests sites, document libraries, and files, including an inventory of Excel workbooks (worksheets, tables, pivot tables, and more). Syncs are incremental, so unchanged libraries are not re-scanned.
{% endhint %}

For questions or help with this setup, contact <support@datalogz.io>.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.datalogz.io/guides/organizational-setup/connector-onboarding-guide/sharepoint.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
