> 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
