Sources & sync

Track folders from SharePoint or OneDrive, keep them in sync with one click, route new files to projects automatically, and answer questions in the Library with provenance.

The Sources tab in the sidebar is where you manage every folder Knowledge is keeping in sync with SharePoint or OneDrive. One row per folder, with status, last sync result, destination projects, and the buttons you need (Sync now, Edit projects & settings, Stop tracking) in one place.

Mental model. Configuration (Connect SharePoint, Connect OneDrive, grant a site) lives under Settings. Day-to-day operations (which folders, are they fresh, where do new files go) live under Sources. The Manage → links on the Sources page take you straight to the matching Settings card when you need it.

What you can do

WorkflowWhoWhere in the app
Ingest one file by pasting its SharePoint or OneDrive link Any signed-in user Upload → Or fetch from SharePoint or OneDrive
Browse your own OneDrive and pick files Any signed-in user (after connecting OneDrive) Upload → Or fetch from SharePoint or OneDriveBrowse my OneDrive
Ingest an entire folder (with optional recursion into sub-folders) Any signed-in user Folder browse pane → Ingest entire folder
Track a folder for ongoing one-click sync Any signed-in user (tenant admin for SharePoint sites) Folder browse pane → Track this folder; manage at Sources
Sync a single tracked folder on demand Tenant admin Sources → row → Sync now
Re-route new files to different projects Tenant admin Sources → row → Edit projects & settings
Re-pull every synced document on the current Library page Anyone who can manage the rows Library → Sync all

Connect your OneDrive (one-time, per user)

OneDrive uses delegated authentication: each user signs in to their own Microsoft account, and Knowledge only sees what that user can see. There's no tenant-wide admin grant — every teammate connects independently.

  1. Open Settings → OneDrive connector.
  2. Click Connect OneDrive. You'll be redirected to Microsoft to sign in.
  3. Microsoft shows a consent prompt for Olyteck Ask – Document Sync requesting Files.Read.All (delegated), User.Read, and offline_access. Accept.
  4. You're redirected back to Knowledge. The card shows Connected as you@yourdomain (business / personal).

Both work accounts (M365) and personal Microsoft accounts work — Knowledge uses the /common authority so the same flow handles both.

What the OneDrive scope actually grants. Files.Read.All delegated lets Knowledge read any file you can read — your own OneDrive plus files shared with you. It cannot upload, modify, share, or delete anything. Knowledge never reads files for any other user. Disconnect any time from the same card; previously-ingested documents stay in your Library and the Sync button stops working until you reconnect.

Ingest a single file by pasting a link

  1. In SharePoint or OneDrive, right-click the file → Copy link.
  2. In Knowledge, go to Upload → expand Or fetch from SharePoint or OneDrive.
  3. Paste the URL into the input. Click Fetch.

Knowledge auto-detects whether the URL is SharePoint or OneDrive by host: *-my.sharepoint.com and *.sharepoint.com/personal/… are treated as OneDrive (your delegated token); everything else under *.sharepoint.com uses the site grant. You don't need to know which is which — paste any link.

Browse your own OneDrive

Click Browse my OneDrive below the URL form. The picker lands on your drive root and shows top-level folders and files. From there:

Ingest an entire folder (with or without recursion)

The folder browse pane has three ingest actions:

Cost control. Knowledge caps total daily fetches per workspace (default 50 on Starter, 500 on Pro) across URL, SharePoint, and OneDrive. The recursive walk respects the cap; if you hit it, the summary tells you so and the rest queues for tomorrow. Unchanged files are detected via SHA-256 hash and cost nothing — no re-embed, no quota burn.

Track a folder for ongoing sync

Tracking lets you click Sync now later (or wait for the daily cron, when enabled) and have Knowledge reconcile its copy of the folder against what's currently on SharePoint / OneDrive — without re-uploading.

  1. Browse to the folder in the Upload tab.
  2. Important — pick destination projects first. Use the project chips at the top of the Upload tab. Every file the sync pulls into Knowledge will be auto-assigned to those projects.
  3. Click Track this folder in the folder browse pane.
  4. You'll see a modal asking about auto-delete behaviour (see below) and showing which projects new files will land in.
  5. Confirm. The folder now appears under Sources in the sidebar.

The auto-delete question explained

When a file disappears from the source folder during a sync, what should Knowledge do with the matching document?

The Sources view

Click Sources in the sidebar to see every tracked folder, regardless of provider. The page has two cards:

Connections card

Read-only summary: which providers you're connected to, how many SharePoint sites are granted, who's signed in on OneDrive, and how many teammates have connected. Each provider has a Manage → link that scrolls Settings to the matching connector card if you need to add a site, disconnect, or change a grant.

Tracked folders card

One row per folder. Per row you see:

A search box at the top filters the list by folder name or path — handy once you've tracked more than a handful of folders.

Edit projects & settings (after tracking)

Tracked-folder rows expose Edit projects & settings. The modal shows:

Changes apply to future syncs only. Documents already in your Library aren't reassigned automatically. If you need to attach an existing doc to a new project, use the Library's row menu → Add to project, or the bulk-assign banner after selecting rows.

Sync all (Library toolbar)

When the Library view contains rows backed by a SharePoint, OneDrive, or URL source, a Sync all (N) button appears next to Refresh. Clicking it triggers a sync on every visible synced row, 3 at a time, with a progress counter in the button and a summary toast when it finishes ("4 up-to-date, 1 queued, 1 failed").

Visible rows only. Sync all does not reach rows on other pages of the Library, by design — keeps the action bounded and the scope obvious. If you have 200 synced docs, paginate and click again, or use per-folder Sync now from Sources to do them in batches.

Library source badges

Documents that came in through a sync carry a small badge in the title cell:

Hover the badge to see the source URL, the tracked folder name (if any), and the auto-delete state. Click the badge to open the source in a new tab — useful when you want to verify a citation against the original.

OneDrive — security & scope

What permissions does OneDrive have?

PermissionTypeUsed forData access
Files.Read.All Delegated Reading files the signed-in user can read Only as the signed-in user. Knowledge sees their OneDrive plus files shared with them. Nothing in any other user's drive.
User.Read Delegated Reading the user's display name and email for the connector UI Profile fields only — no contacts, no calendar, no directory.
offline_access Delegated Issuing a refresh token so syncs can run without re-prompting the user every hour None on its own — just refreshes the access token.

What the connector cannot do

Token storage

Audit trail

Every Graph API call (token request, share resolve, driveItem fetch, folder list, folder track/sync/edit, OneDrive connect/disconnect) is recorded in platform.audit_log with action, tenant, user, target endpoint, and HTTP result. Available to tenant admins on request.

Troubleshooting

"no OneDrive connection for this user — click Connect OneDrive first"

You haven't connected OneDrive yet for the account you're signed in with. Open Settings → OneDrive connector and click Connect OneDrive. The connection is per-user — your teammate connecting theirs doesn't connect yours.

"OneDrive refresh failed: AADSTS70008 / AADSTS65001"

Your refresh token has expired or your consent was revoked at Microsoft. Open Settings → OneDrive connector → Reconnect OneDrive. You'll be redirected to Microsoft to sign in again and the connection is restored. Existing tracked folders and ingested docs are unaffected.

"parent SharePoint site is not connected to your Ask tenant"

You pasted a SharePoint file URL whose parent site hasn't been granted yet (this is the SharePoint connector, not OneDrive). Tenant admin: Settings → SharePoint connector → Add & grant with the site root URL. SharePoint connector help.

"Sync done: +0 ~0 −0 unchanged" — but I added a file at the source

If you just added the file, Microsoft may not have indexed it yet — try again in a minute. If you renamed an existing file, sync sees no eTag change because the underlying driveItem id is unchanged — that's correct behaviour, the doc is the same content. If the file is in a sub-folder of the tracked folder, sync only walks one level by design (sub-folder recursion needs Track this folder on the sub-folder, or one-shot Ingest entire folder with recursion enabled).

"Sync failed: parent SharePoint site is not connected"

Your admin revoked Knowledge's access to the underlying site. The tracked folder row will keep failing until access is re-granted. Either re-grant the site under Settings → SharePoint connector, or Stop tracking the folder and the row vanishes.

"New files land unassigned" — I picked projects when I tracked the folder

That label means the folder currently has zero destination projects on record. Click Edit projects & settings on the Sources row and tick the projects you want. The change applies to the next sync.

The Sources sidebar count is stale

The number on the Sources sidebar tab refreshes when you visit Sources, after you track a new folder, and after Stop tracking. Click Refresh on the Sources view header if you want to force a refetch.