Previous SharePoint setup
These instructions apply to Glean deployments created before August 14, 2026, including when you are connecting SharePoint to Glean for the first time. Connectors configured this way keep working, and there is no migration to run. To confirm which setup applies to you, see Choose your setup.
Set up the Microsoft 365 parent connector before configuring SharePoint. SharePoint inherits the client ID, tenant ID, and credentials from the Microsoft 365 suite and only requires SharePoint-specific configuration below.
Required permissions for setup
- The user setting up this connector must be the Global Admin.
Add SharePoint-specific permissions to the parent app
Using the app created during Microsoft 365 setup, add the following permissions. For why Glean needs each scope and what breaks without it (useful when briefing your security team), see Required permissions.
- Sign into the Azure portal.
- Navigate to Microsoft Entra ID > Manage > App registrations and select the app created for the Microsoft 365 suite.
- Select Manage > API Permissions > Add a permission.
- Select Microsoft Graph. Choose Application permissions and add the following:
User.Read.AllGroupMember.Read.AllFiles.ReadWrite.All(for subscriptions over drives)Reports.Read.AllSites.FullControl.AllMember.Read.Hidden
- Select Add a permission, then choose SharePoint.
- Choose Application permissions and add the following:
Sites.FullControl.All
Grant admin consent
-
Ensure you are signed into Azure as a Global, Application, or Cloud Application Administrator.
-
Use the search box to navigate to Enterprise applications.
-
Select the Glean app from the list of applications.
-
Select Permissions under Security. Review the permissions shown, and select Grant admin consent.
You must have the following permissions provisioned on the API Permissions page:
Configure SharePoint in Glean
-
In the Glean Admin Console, select the SharePoint child connector under the Microsoft 365 suite. The client ID and tenant ID are inherited from the parent.
-
Enter your SharePoint domain in Glean. Your SharePoint domain must end with sharepoint.com.
-
Glean recommends 1–10 additional applications with the same permission settings to increase full crawl indexing speed. Repeat the permission setup for each additional app and enter its client ID in Glean.
- Select Save in Glean to save the configuration.
OAuth setup
Glean displays a redirect URI on the SharePoint setup page. Add it as a redirect URI on the application registration used for indexing, otherwise Microsoft rejects the authorization request. The URI follows this pattern, where the host is specific to your deployment:
https://<your-company-be.glean.com>/instance/o365/oauth/verify_code
Use the value shown in the Admin console rather than constructing it by hand, and do not confuse it with the callback URL used for read and write tools, which ends in /tools/oauth/verify_code.
SharePoint REST API permissions
Glean uses the SharePoint REST API for some SharePoint-specific scenarios that are not covered by Microsoft Graph, such as site page permissions.
Use the certificate-based authentication flow in Microsoft 365 setup and complete the SharePoint-specific application permissions described in Add SharePoint-specific permissions to the parent app.
If you are migrating an older SharePoint setup that used client-secret authentication, see Switch from secret to certificate authentication.
See also
- Choose your setup: How this setup differs from the new setup, and which applies to your deployment.
- Set up the indexing connector: What Glean crawls, and the indexing options available once credentials are in place.
- SharePoint overview: What the SharePoint connector indexes and how it fits into the Microsoft 365 suite.
- Microsoft 365 connector: The parent connector that SharePoint inherits credentials from.