> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daedaline.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connecting SharePoint

> Import documents directly from your Microsoft OneDrive or SharePoint into a Daedaline project.

The SharePoint integration lets you browse your Microsoft OneDrive and SharePoint libraries directly inside Daedaline and import files without downloading them to your computer first. Files are transferred server-side and processed through the standard ingestion pipeline — no manual re-uploading required.

<Note>
  This integration uses delegated Microsoft permissions, so you can only import files you already have access to in your organisation's tenant.
</Note>

## Connecting your Microsoft account

You only need to connect once per account. After that, Daedaline remembers your connection until you choose to disconnect.

1. Inside a project, open the **Documents** tab and click the upload area.
2. Select the **SharePoint** tab in the document uploader.
3. Click **Connect Microsoft Account**.
4. You will be redirected to Microsoft to sign in and grant Daedaline permission to read your files (`Files.Read` and `Sites.Read.All`).
5. After approving, you are returned to Daedaline. Your connected email address is displayed in the uploader — you are now ready to browse.

<Info>
  If your organisation uses conditional access policies or requires admin approval for third-party app consent, contact your IT administrator to approve the Daedaline app in your Microsoft tenant.
</Info>

## Importing files from OneDrive or SharePoint

Once connected, you can browse and import files at any time:

1. In the **SharePoint** tab of the uploader, click **Browse OneDrive / SharePoint**.
2. A Microsoft file picker opens. Navigate to the OneDrive folders or SharePoint document libraries you want to import from.
3. Select up to **50 files** in a single import operation.
4. Click **Open** (or equivalent) in the picker to confirm your selection.
5. Daedaline downloads the files from Microsoft and uploads them to your project automatically.

### Import progress

The uploader shows a four-step progress view while your files are being imported:

| Step                             | Description                                                         |
| -------------------------------- | ------------------------------------------------------------------- |
| **Authenticated with Microsoft** | Your Microsoft account connection has been verified                 |
| **Files selected**               | Your file selection from the picker has been received               |
| **Download and upload files**    | Files are being downloaded from Microsoft and uploaded to Daedaline |
| **Attach to project**            | Documents are being added to your project                           |

Once complete, your documents appear in the file manager and begin processing.

### Duplicate detection

If a file you select from SharePoint or OneDrive has already been imported into the project (based on file content), Daedaline skips the duplicate automatically and notifies you. The original document is not affected.

## Disconnecting your Microsoft account

To remove Daedaline's access to your Microsoft account:

1. Open the **SharePoint** tab in the document uploader.
2. Click **Disconnect** next to your connected email address.
3. Daedaline immediately revokes its access to your Microsoft account and removes your stored credentials.

<Warning>
  Disconnecting does not delete any documents that have already been imported. It only removes Daedaline's ability to access your Microsoft files going forward.
</Warning>

## Reconnecting

If you disconnect and want to import more files from SharePoint or OneDrive later, click **Connect Microsoft Account** again to go through the brief OAuth flow. You can connect with the same Microsoft account or a different one.

## Frequently asked questions

<AccordionGroup>
  <Accordion title="Which file types can I import from SharePoint?">
    You can import any file type that Daedaline supports for local upload — including PDFs, Word documents, Excel spreadsheets (`.xlsx`, `.xls`, `.xlsm`), PowerPoint presentations, and more. Files are processed through the same ingestion pipeline regardless of their source.
  </Accordion>

  <Accordion title="Does Daedaline store my Microsoft credentials?">
    Daedaline does not store your Microsoft password. It stores an encrypted OAuth access token and refresh token on its servers, which are used to fetch files on your behalf. These tokens are encrypted at rest using AES-256-GCM. You can revoke access at any time by disconnecting your account.
  </Accordion>

  <Accordion title="Can I import from a SharePoint site I have been given access to?">
    Yes. The integration uses your existing Microsoft permissions — if you can open a SharePoint library or OneDrive folder in your browser, you can import from it in Daedaline.
  </Accordion>

  <Accordion title="How many files can I import at once?">
    You can select and import up to 50 files in a single operation. For larger imports, run multiple import batches.
  </Accordion>

  <Accordion title="Will importing the same file twice create a duplicate?">
    No. Daedaline uses content-based deduplication — if you import a file that is identical to one already in the project, it is skipped automatically.
  </Accordion>
</AccordionGroup>
