Connecting SharePoint documentation
Create a read-only Microsoft Entra app registration, connect it to QuantumOps and choose the SharePoint sites and document libraries Qubit may read.
Last updated About 1 month ago
A SharePoint source lets Qubit cite the pages and files on your SharePoint sites. QuantumOps reads SharePoint through a Microsoft Entra app registration that you create in your own Microsoft 365 tenant, so you decide exactly what it can see. This page takes you through creating the registration, connecting it and choosing what to sync.
Before you start: you need the Administrator role in QuantumOps and the Documentation module on. You also need a Microsoft 365 account that can create app registrations and grant admin consent for your organization. If that is someone else, give them this page.
What the connection reads
The app registration gets two read-only Microsoft Graph application permissions, Sites.Read.All and Files.Read.All. Together they let the app read the sites and files of your whole Microsoft 365 tenant. QuantumOps then syncs only the sites and document libraries you choose in step 7, and nothing is written back to SharePoint.
QuantumOps syncs the pages of the sites you choose and the files in the libraries you choose, for these file types: Word, Excel and PowerPoint (.docx, .xlsx and .pptx), PDF, plain text, Markdown, HTML, RTF, XML and JSON. Older .doc, .xls and .ppt files are skipped, and so are files larger than 50 MB.
Create the app registration
- Open the Documentation Hub, select Sources, and under Add Documentation Source choose SharePoint. The SharePoint Integration Setup panel opens with the same instructions as this page. If they are hidden, use the Setup Instructions toggle, which reads Show or Hide.
- In the Microsoft Entra admin center, open App registrations and select New registration. Give it any name, for example QuantumOps SharePoint Reader. For supported account types choose Accounts in this organizational directory only. Leave the redirect URI blank and select Register.
- In the new registration, open API permissions, select Add a permission, then Microsoft Graph, then Application permissions. Add Sites.Read.All and Files.Read.All. Select Grant admin consent and confirm that both permissions show a green check mark.
- Open Certificates & secrets, then Client secrets, and select New client secret. Give it a description, choose how long it should last and select Add. Copy the secret's Value straight away. Copy the value, not the secret ID: the value is shown only once.
- Open the registration's Overview page and copy the Application (client) ID and the Directory (tenant) ID.
Connect it to QuantumOps
Back in the SharePoint panel, fill in:
- M365 Tenant ID: the directory (tenant) ID from step 5.
- Client ID: the application (client) ID from step 5.
- Client Secret: the secret value from step 4. The field hides what you type.
Select Test Connection. It reports Connection successful! or Connection failed with the reason. If it fails, check that you pasted the secret's value and not its ID, and that admin consent was granted for both permissions. Test Connection and Save SharePoint Source stay disabled until all three fields are filled in.
When the test passes, select Save SharePoint Source. The panel confirms Credentials saved successfully and starts loading your SharePoint sites.
Choose what to sync. Select the sites Qubit may read. Under each selected site the Document Libraries appear, all selected; clear any library you do not want. Then select Save Selection. The button shows how many sites and libraries you have selected.
A SharePoint source cannot sync until you have chosen at least one site. If you save an empty selection, the source keeps its credentials but has nothing to sync.
If a checked site's libraries cannot be listed, the site shows an error and a Retry button, and the selection is not saved while any checked site is in that state. Select Retry, then save again. If no sites appear at all, check that the registration has both permissions and that admin consent was granted.
Sync your SharePoint content
Back on the Sources tab, the new SharePoint source appears under Active Sources. Select Sync to read the sites you chose. Select Sync again after you change the site selection or renew the secret. See Documentation sources for syncing, re-indexing, pausing and deleting, and for how to test a search on this source.
After a sync, each SharePoint document carries its site as its organization, so the Documents tab shows the site's name and the site appears on the Client Mapping tab with the other organizations. Until a site or folder is tied to a HaloPSA client, the documents are not tied to a client either, so Sherlock research (the research QuantumOps runs on each ticket; see Sherlock research and live context) does not use them for a ticket. Qubit chat and external AI clients can find them when a search is not limited to one client. Tie folders to a HaloPSA client says how to give a folder a client.
Search SharePoint is off until you turn it on in the hub's Settings tab, and Documentation search in AI must be on as well. The settings table on the Documentation Hub page describes both and gives their labels on the Q-Director Research & Docs tab.
Tie folders to a HaloPSA client
A folder mapping says which HaloPSA client a SharePoint folder belongs to. Documents in a mapped folder (and its subfolders, if you check that) belong to the chosen client, and a folder mapped to Global (all clients) holds documents every client may see.
- On the source's card, select Configure, then open Folder mappings. Save your library selection first: only libraries you have saved can be mapped.
- In Library, choose one of the libraries you saved.
- In Folder path, enter the folder, for example
/Clients/Acme. Leave it empty to cover the whole library. - In Client, choose the HaloPSA client, or Global (all clients).
- Leave Include subfolders checked to cover the folders below it as well, or clear it.
- Select Add mapping.
Each mapping is listed with its site and library, the folder and the client. Select Edit to load a mapping into the form (the button then reads Save mapping, and Cancel edit leaves it unchanged), or Delete to remove it. A folder can have one mapping, and a second one is refused with That folder already has a mapping. Edit it instead of adding another.
Saving applies the mappings at once to the documents already synced, and a message says how many were updated. They are applied again after every sync. When folders overlap, the most specific folder wins. Deleting a mapping takes the client away from the documents it gave one, and your other mappings then apply again.
Change the sites and libraries later
On the source's card, select Configure. The picker lists your sites with nothing checked, so select every site and library you want the source to keep, not only the ones you are adding, and select Save Selection. Saving replaces the earlier selection, and saving with nothing checked removes every site and library from the source. The next sync uses the new selection.
Before the client secret expires
Every client secret has an end date that you chose when you created it. Note that date, and plan to replace the secret before it passes: once it has expired, this source can no longer read SharePoint and its syncs stop bringing in changes. If the card shows Error after you select Sync, or its last-sync time stops advancing, the secret may have expired.
To use a new secret, create it in the Microsoft Entra admin center. Then, on the source's card, select Configure, open Replace saved credentials, enter the secret in New client secret and select Save new credentials. Leave M365 Tenant ID and Client ID empty to keep what is stored, or fill them in if the registration changed. The panel confirms with Credentials replaced. Run a sync to use them. Select Sync afterwards. Nothing else about the source changes.
Related pages
- Documentation Hub: the search settings that decide who uses SharePoint content.
- Documentation sources: managing the source day to day.
Was this helpful?
More in Integrations
Your HaloPSA connectionDocumentation HubConnect ConnectWise PSAMap your PSA and check its healthStill need help? Ask the team