Connecting SharePoint
Authorize access
Click Authorize on the SharePoint data source page. You’ll be redirected to Microsoft’s OAuth consent screen. Review the permissions and click Accept. This does not start syncing any data yet.



- Grant admin consent in Microsoft Entra (see below)
- Connect with application scopes using the alternative connect button on the data source page
Granting admin consent
To allow Realm to access all SharePoint content (not just what the connecting user can see), grant admin consent in Microsoft Entra:- Go to Microsoft Entra admin center > Applications > Enterprise applications
- Find Realm in the list
- Go to Permissions and click Grant admin consent for [your organization]

What gets synced
| Content | Synced |
|---|---|
| Documents and files in selected sites | Yes |
| SharePoint site pages | Yes |
| OneNote notebooks and pages | Yes |
| OneDrive files in selected drives | Yes |
| SharePoint lists | No |
Selecting sites and drives
After connecting, choose which SharePoint sites and OneDrive drives to sync. The data source page shows connected sites and drives, and you can add or remove them at any time. Realm only syncs content from the sites and drives you select.Permissions
Realm enforces SharePoint’s native permission model. Users can only see documents they have access to in SharePoint. You can override this by switching to “Everyone in this organization” on the data source settings page, which makes all synced SharePoint data visible to all Realm users.Restricting API access
To limit what Realm can access:- Create a Microsoft service account that only has access to specific sites
- Ensure the account can consent to applications
- Use that account when connecting SharePoint
Required scopes
The SharePoint integration requires:Sites.Read.AllFiles.Read.AllDirectory.Read.AllNotes.Read.All


