SharePoint Online
To connect Cognite File extractor to the SharePoint Online sources, complete the required minimum number of steps.
Note
The configuration is subject to change depending on permissions, restricted access on the SharePoint level, etc.
Register an application
- Follow the steps to register an application that the Cognite File extractor will use to connect to
SharePoint Online. - Optional. Set up and create groups.
- Assign relevant API permissions to use Microsoft Graph API. The example has the minimal setup for the File extractor to read all
SharePoint Onlinesites.
Sites.Read.All (Type: Application)
User.Read (Type: Delegated)
SharePoint app permissions
After creating the App Registration, add its details to the SharePoint administration app registration.
- To create a new SharePoint app permission, go to this URL https://YOUR-SHAREPOINT-NAME-admin.sharepoint.com/_layouts/15/AppInv.aspx, where YOUR-SHAREPOINT-NAME should be changed. Make sure to use your Microsoft 365 admin account.
- Enter your Application (client) ID in the App Id field and select Lookup. You should see the App registration details filled out.
- Enter App Domain and Redirect URL of your App registration.
For a local execution of File extractor, enter the values of a localhost domain:
App Domain: www.localhost.com
Redirect URL: https://www.localhost.com/default.aspx
- Add the App's Permission Request XML to configure the SharePoint permission level. This may vary from every configuration scenario. The example gives the minimal XML with the
Read
permissions to all SharePoint sites.
<AppPermissionRequests AllowAppOnlyPolicy="true">
<AppPermissionRequest Scope="http://sharepoint/content/sitecollection"
Right=“Read” />
</AppPermissionRequests
Note
The configuration is subject to change depending on permissions, restrict access on the SharePoint level, etc.
- Select Create and then confirm that you trust SharePoint.