OneDrive for Business
Who can do this: repository admins, and a Microsoft 365 administrator for the consent.
The OneDrive connector reads users’ OneDrive for Business files. Available on every plan.
A OneDrive holds personal content. Mount one only where your organisation’s policy allows that user’s files to be indexed and shown to the people you grant access.
| Plan | Every plan |
| Reads | Files and folders of the OneDrives for Business you mount — a user’s whole OneDrive or one folder of it |
| Does not read | Consumer OneDrive (personal Microsoft accounts); file versions; OneDrive sharing and permissions |
| Reaches it through | ContentSurface’s Microsoft Entra application, app-only, with read-only consent (Sites.Read.All) |
| Limits | Files appear with the types Document and Folder only; one Microsoft 365 organisation per connection |
Limits common to every connector — indexed text per document, file size for extraction, OCR — are in Connectors.
Permissions requested
Section titled “Permissions requested”The same Microsoft Entra application and consent as
SharePoint Online: app-only
Sites.Read.All, read only. An organisation that consented for SharePoint
Online has consented for OneDrive too.
Steps in the Portal
Section titled “Steps in the Portal”
- Connections → New connection: OneDrive, a name and the OneDrive
host — your SharePoint host with
-my, such ascontoso-my.sharepoint.com. - Grant the Admin consent, as for SharePoint Online.
- Check.
- New mount point: type into Location the user’s sign-in name, such as
ana.novak@contoso.com, for their whole OneDrive, or the address of a folder in it. - Mount it, preview, and activate.
Changes are picked up every few minutes. Files appear with the static types Document and Folder.
In the API
The Portal does this through these calls; an integration can make them directly.
| Operation | Call |
|---|---|
| Creates a connection; its connector type and source location are fixed. | POST /v1/admin/connections |
| Microsoft Entra ID's admin consent URL for a SharePoint Online or OneDrive connection; valid for 30 minutes. | POST /v1/admin/connections/{id}/consent |
| Tests reachability and authentication of the source. | POST /v1/admin/connections/{id}/check |
| Validates a location through the connector and creates a mount point on it. | POST /v1/admin/connections/{id}/mount-points |