Set up the indexing connector
This section covers setup requirements, permissions, and configuration specific to the OneDrive indexing connector. For real-time access and read and write tools setup, see the overview.
Before you start
Have these ready before you configure the OneDrive indexing connector, so you don't hit mid-setup delays:
- Have a Microsoft 365 Global Admin grant admin consent for the API permissions.
- Configure the Microsoft 365 parent connector for identity crawling and tenant settings. OneDrive uses its own client ID and certificate credentials. See Microsoft 365.
- Get approval for the OneDrive app's Microsoft Graph application permissions:
Files.ReadWrite.Allis required andSites.FullControl.Allis recommended. Identity permissions belong to the Microsoft 365 parent app. Share the permissions table with your Chief Information Security Officer (CISO) or security team before starting. Glean uses write access to create webhook subscriptions, not to write to your files. - Time to allow — plan for the Azure app configuration and Glean Admin console setup, followed by the initial crawl, which takes hours to days depending on corpus size.
Required permissions
Grant the file-indexing application permissions on the OneDrive app: Files.ReadWrite.All is required, and Sites.FullControl.All is recommended to track permission changes. The Microsoft 365 parent app keeps User.Read.All, GroupMember.Read.All, Member.Read.Hidden, and Reports.Read.All. Don't add those identity scopes to the OneDrive app.
You don't need to recreate an existing connection or ask users to sign in again solely because these instructions changed. Real-time access uses delegated permissions separately from file indexing.
The baseline permissions are always included. Select any extras below and the permission set updates instantly. Then copy it to hand to your IT or security team, so every scope is requested in one pass.
Grant content permissions on the OneDrive app. Complete identity setup separately on the Microsoft 365 parent app. Use the credentials shown in the OneDrive connector. Do not recreate a working connection. Microsoft 365 setup. OneNote setup.
App registration: OneDrive app
Files.ReadWrite.AllRequired. Creates and reauthorizes webhook subscriptions over OneDrive drives to detect changes. Update timing depends on crawl configuration and completion. No files are written.Sites.FullControl.AllRecommended. Helps track OneDrive permission changes. The connector can run without this permission, but permission updates can be delayed.
What gets indexed
| Content type | Support | Notes |
|---|---|---|
| Documents (Word, Excel, PowerPoint, PDF, text) | Full | Files up to 64 MB are downloaded for indexing. Up to 16.875 MB of converted text content is indexed. Password-protected files are indexed as metadata only. |
| Folders | Full | All personal folders by default. Scopeable to specific Azure AD groups. |
| Document metadata | Full | Author, last modified, created date, and permissions. |
| OneNote — Notebooks and Sections | Full | Indexed as folders and documents by default. |
| OneNote — Pages (body content) | Limited beta | Requires Notes.Read.All plus OAuth for each user. See OneNote setup. |
| Images, videos, drawings | Metadata only | Not downloaded by default. Optical Character Recognition (OCR) off by default. Contact Support to discuss options. |
| Files with generic or unrecognized content types | Metadata only by default | When a specific content type is configured for additional parsing, Glean attempts to detect the file’s actual format. Text and other supported formats may be indexed. Files that resolve to unsupported binary formats remain metadata-only. Contact Glean Support to discuss a specific file type. |
| Files larger than 64 MB | Metadata only | Title, author, and permissions are indexed. Content is not. |
| Consumer OneDrive (personal Microsoft accounts) | Not supported | OneDrive for Business (M365 tenant) only. |
Known limitations
- OneNote page indexing requires consent from each user. The OneNote beta requires each user to individually authenticate their M365 account in Glean. Admin configuration alone is not sufficient.
Setup steps
Set up the Microsoft 365 parent connector
Configure the parent connector for identity crawling and the tenant ID before adding OneDrive. See Microsoft 365.
Register the OneDrive app and upload its certificate
In the Admin console, select the OneDrive child connector under Microsoft 365 and open Setup. Register a single-tenant OneDrive app in the same Microsoft Entra tenant. Generate a certificate and upload its public certificate to that app. See Setup (Certificate).
Grant the required API permissions
Sign in to the Azure portal. Navigate to Microsoft Entra ID → Manage → App registrations and select the app used by OneDrive.
Select Manage → API permissions → Add a permission, select Microsoft Graph,
choose Application permissions, and add Files.ReadWrite.All. Glean also recommends
Sites.FullControl.All to track permission changes. Review the configured permissions, then
click Grant admin consent for your tenant and confirm the request. In the Status
column, confirm that each permission you added shows Granted for followed by your
tenant's name. For the alternative Enterprise applications route, see
Grant admin consent.

Configure OneDrive in the Glean Admin console
Enter the OneDrive app's Application (client) ID and upload its certificate (.crt) and
private key (.key) in the OneDrive Setup tab. The Directory (tenant) ID comes from
Microsoft 365 and may appear as read-only.
Don't register extra apps for crawl speed. If additional apps are already configured, keep them in place and maintain their permissions and credentials.
Set the crawl scope and click Save.
(Optional) Enable real-time access or read and write tools
Enable additional connection modes after the base connector is running. See real-time access and the Microsoft 365 read and write tools.
Permissions and security
- Permission propagation. Glean maps document-level permissions from OneDrive one-to-one and strictly enforces search-result visibility from those mappings.
- Security and compliance. File indexing uses application permissions with admin consent. Real-time access uses delegated authorization.
Hide Microsoft 365 content with Purview sensitivity labels
Glean can exclude SharePoint and OneDrive items from indexing based on their Microsoft Purview sensitivity labels. These exclusions don't apply to Data fetching (real-time access). Label-excluded content can still appear in real-time results if the user has access to it in Microsoft 365. See Restrict O365 content via sensitivity labels.
See also
- Choose your OneDrive setup shows which setup is yours and how tools, indexed search, and add-ons fit into each.
- OneDrive overview covers connection methods, what gets indexed, permissions, and limitations.