Connecting Code Buddy to OneDrive

Beta

Last Updated: September 2, 2026

Available now, in beta. Backups run every night, and your administrators are alerted if one stops landing. While this is in beta we recommend keeping your existing backup running alongside it. Tell us how it goes: ops@codebuddy.chat.

Connecting OneDrive gives Code Buddy two folders to work with: one it writes your inspection records into, one your team imports site photos from. You choose both.

SharePoint works too. The same connection reaches your SharePoint document libraries, so the folders can sit where your company already keeps project records.

The backup folder

Code Buddy holds inspection data for a limited retention period and then deletes it. The backup folder is where your own copy goes, so your records outlive ours.

Each night, for every inspection completed that day, Code Buddy writes:

  • the signal report as a PDF, the same document you read in the app
  • the photographs as separate image files, at full resolution
  • a manifest describing what the inspection contained

Backups are switched on under Data & Privacy, not on the integration screen. Choose the folder here, turn backups on there.

If your organisation and a project workspace both have a drive connected, the organisation’s copy is written as well as the project’s, never instead of it.

The photo folder

Point Code Buddy at a folder of site photographs and your team can run inspections against them without uploading anything by hand. Everyone in your organisation imports from that folder, and only from that folder.

Use an account your company owns

The connection acts as whoever authorises it. Point it at a personal account and your records live in one employee’s storage — when they leave and the account is closed, the folder goes with it.

Use a SharePoint document library, or a Microsoft account your company owns and holds the credentials for. Code Buddy warns you when the folder you are choosing sits in a personal account.

Connecting

  1. In Code Buddy, go to Control Center → Integrations.
  2. Find OneDrive and choose Connect.
  3. Sign in with the account that should hold the folders, and approve access.
  4. Choose your two folders. We recommend a fresh one for each — something like Code Buddy Reports and Site Photos.
  5. Go to Data & Privacy and switch nightly backups on.

SharePoint

Reaching a SharePoint document library needs two Microsoft permissions, Sites.Read.All and Sites.ReadWrite.All, which in most Microsoft 365 tenants only an administrator can grant. Without them, OneDrive works normally and SharePoint libraries simply do not appear in the folder browser.

Connected before SharePoint support existed? Disconnect and reconnect to pick up those permissions. Your folder choices can be set again in a minute.

Permissions

Code Buddy asks Microsoft for Files.Read.All and Files.ReadWrite, plus the SharePoint scopes when an administrator has granted them. These are account-wide read permissions, which is what allows the folder browser to list your folders so you can choose two of them.

Code Buddy confines itself to the two folders you choose, and that limit is enforced on our servers rather than by Microsoft. This is why we recommend connecting an account that holds only what you are willing to have in scope.

Code Buddy reads:

  • your folder list, so you can browse and choose the two folders
  • the contents of the photo folder you chose
  • your name and email, so the connection can be shown as belonging to someone

And writes:

  • inspection records into the backup folder you chose

It does not read your mail, your calendar or your contacts, and it does not delete your files.

If something stops working

Backups stopped. Usually a full drive, or the destination folder was moved or deleted. Your administrators are alerted either way; choose a new folder under Integrations.

The connection stopped working. Usually the authorising account was disabled or its password changed. Reconnect — and if it was a personal account, move to one the company owns.

Need a hand?

Email ops@codebuddy.chat and tell us which organisation you are with and what you were trying to do.