Setup (Native)
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 data source 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.
- Sign into the Azure portal.
- Navigate to Microsoft Entra ID > Manage > App registrations and select the app created for the Microsoft 365 suite.
- Click Manage > API Permissions > Add a permission.
- Select Microsoft Graph. Choose Application permissions and add the following:
User.Read.AllGroupMember.Read.AllFiles.Read.AllFiles.ReadWrite.All(for subscriptions over drives)Reports.Read.AllSites.FullControl.AllMember.Read.Hidden
- Click Add a permission and select 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.
-
Click on Permissions under Security. Review the permissions shown, and click 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.
- Ensure you complete the SharePoint REST API permissions below before clicking Save, or the save will not succeed.
SharePoint REST API permissions
Since the Graph API does not support many SharePoint use cases (for example, site page permissions), Glean also uses the SharePoint REST API. This must be done for the parent app and every additional app.
-
Navigate to
<your-sharepoint-domain>-admin.sharepoint.com/_layouts/15/appinv.aspxwhere if you access SharePoint at glean.sharepoint.com, the SharePoint domain would be "glean." -
Look up the app using the Client ID. You can fill the App Domain and Redirect URL to glean.com and https://glean.com respectively.
-
For Permission Request XML, paste the following:
-
Repeat for each additional app.
-
Click Save in Glean to save the configuration.