ShiftPilotDocs

Connecting OneDrive

Let Avery read a OneDrive or SharePoint folder. An edit there reaches Avery within about five minutes. The connection is read-only.

What you need

  • A ShiftPilot account with the admin role. The Knowledge Files page is shown to admins only.
  • A Microsoft work account that can open the folders Avery should read.
  • The folders themselves. One folder per topic works well, for example a Logistics folder with one file per site.
  • If your organization requires IT to approve new applications, a few minutes of an IT administrator's time.

What ShiftPilot is allowed to do

When you sign in, Microsoft shows the permissions ShiftPilot asks for. All are delegated permissions: ShiftPilot acts as the account that signed in and can open only what that account can open. It is never given access of its own to your organization's Microsoft tenant.

PermissionWhy ShiftPilot asks for it
openid, profile, emailTo sign you in and show which account is connected.
offline_accessTo keep checking the folders every five minutes without asking you to sign in each time.
Files.Read.AllTo read the files in the folders you add.
Sites.Read.AllTo find the SharePoint site and document library a folder's link points at.

No permission in the list allows writing. Avery never changes, moves or deletes a file.

The two read permissions cover every file the signed-in account can open. ShiftPilot uses them only for the folders you add and the sub-folders inside them. To narrow the grant itself, sign in with an account that can open only the folders meant for Avery, for example a dedicated account those folders are shared with.

Connect

  1. Sign in to ShiftPilot as an admin and open Knowledge Files.
  2. Select OneDrive at the top of the page.
    The OneDrive panel before signing in
    The OneDrive panel, before anyone has signed in.
  3. Select Sign in with Microsoft and choose the account that can open the folders.
  4. Microsoft lists the permissions above. Select Accept.
  5. You are returned to Knowledge Files. The panel now shows Signed in as and the account, and a box to add a folder.

If Microsoft shows Need admin approval at step 4, the sign-in itself is working: your organization requires an IT administrator to approve ShiftPilot first. Follow the next section, then repeat steps 3 to 5.

If Microsoft asks for admin approval

Many organizations do not let staff approve a new application by themselves. An IT administrator approves ShiftPilot once for the organization, and after that the sign-in goes through.

  1. On the OneDrive panel, under the sign-in button, select Copy the approval link for IT.
  2. Send the link to your IT team, with this page.
  3. An IT administrator opens the link and signs in with a Microsoft administrator account for your organization.
  4. Microsoft lists the four permissions. The administrator selects Accept.
  5. The browser shows a ShiftPilot page that reads ShiftPilot is approved. The tab can be closed.
    The page shown after an administrator approves ShiftPilot
    What IT sees when the approval has gone through.
  6. Sign in again on the OneDrive panel.

What the approval does and does not do

  • It lets people in your organization sign in to ShiftPilot's OneDrive connection with the four permissions above, and nothing more.
  • It gives ShiftPilot no access by itself. Nothing is read until an admin signs in on the OneDrive panel and adds a folder, and then only what that account can open.
  • The link carries no password or secret. It works only for a person who signs in as an administrator of your Microsoft tenant.
  • ShiftPilot stores nothing when the link is used. The page at the end only reports what Microsoft said.

Who can approve

Microsoft decides which administrator roles may approve an application. At the time of writing its documentation names Global Administrator and Privileged Role Administrator, and, for delegated permissions such as these, Cloud Application Administrator and Application Administrator. If your organization uses Microsoft's admin consent requests, your attempt to sign in creates a request that IT can review in the Microsoft Entra admin center instead of using the link.

Add the folders Avery reads

  1. Open the folder in OneDrive or SharePoint in a browser and copy the address from the address bar. A link made with Share, then Copy link, works as well.
  2. On the OneDrive panel, paste it under Add a folder and select Add.
  3. The folder appears under Folders Avery reads. It says Reading… while the first read runs, then the number of files and when they were last read.

Every file in the folder and in its sub-folders is read, down to twelve levels of sub-folder and up to 5,000 files for each folder added. You can add more than one folder.

Kind of fileExtensions read
Markdown and text.md, .txt
Word.docx, .doc
PDF.pdf, up to 20 MB each
PowerPoint.pptx, .ppt, .pps
Excel and CSV.xlsx, .xls, .csv
Images.png, .jpg, .jpeg, .webp, up to 20 MB each

Other kinds of file in the folder are left alone. New files are placed on one of the shelves as they are read.

How a change reaches Avery

Every five minutes ShiftPilot lists each folder and compares the list with the one before. If a file was added, edited, renamed, moved or removed, that folder is read again. A folder nobody touched is not read again.

  • An edit is normally in Avery's answers within about five minutes of being saved. A large file, or many changes at once, takes longer.
  • A file removed from the folder is removed from Avery on that read, so Avery stops answering from it.
  • The file in OneDrive stays the source of truth. To correct an answer, correct the file.

Removing a folder and disconnecting

ActionWhat happens
Remove a folderSelect the bin beside the folder. Avery stops answering from the files in it. Nothing changes in OneDrive, and the folder can be added again later.
DisconnectSigns Avery out of Microsoft. The folders stay listed and Avery keeps what it already read, but nothing updates. To remove the content as well, remove the folders first.
Withdraw approval at MicrosoftYour IT team can remove the application or its consent in the Microsoft Entra admin center at any time. ShiftPilot can then read nothing, and the panel asks you to sign in again.

What ShiftPilot stores

  • The text read from each file, divided into passages that Avery searches. The file itself is not copied into ShiftPilot.
  • Each file's name, its folder path, its size, when it was last changed and a link back to it in OneDrive.
  • The Microsoft sign-in tokens for the one connected account. They are held on ShiftPilot's servers and are never sent to a browser.

Reading a file uses ShiftPilot's AI provider, OpenAI: the text is turned into a search index, and PDFs and images are read into text. The ShiftPilot Security Overview lists subprocessors and how data is handled.

If something goes wrong

What you seeWhat to do
Need admin approval, from MicrosoftFollow If Microsoft asks for admin approval.
"The Microsoft account that is connected can't open that folder."Share the folder with the connected account, or disconnect and sign in with the account that owns it.
"Microsoft wouldn't open that sharing link with read-only access."Open the folder in a browser and paste the address from the address bar instead of a sharing link.
"Microsoft couldn't find that folder."Check that the link opens the folder, then paste it again.
"That link opens a file, not a folder."Paste the link to the folder.
"Microsoft signed Avery out."Select Sign in again. The folders carry on updating.
"Microsoft is busy right now."Try again in a minute.

For anything else, write to info@shiftpilot.com or call or text (877) 619-4210.

Type a word or two: availability, OneDrive, swap.