Microsoft Sharepoint (documents)

To connect KAI with Microsoft Sharepoint, we use Microsoft Graph API

Need : your Microsoft Azure Tenant Administrator

3

Add scopes

https://learn.microsoft.com/en-us/graph/permissions-overview?tabs=http

here scopes needed :

  • Files.Read.All [application permission]

  • Group.Read.All [application permission]

5

Retrieve your sharepoint host

example : if your sharepoint url look like this : https://contoso.sharepoint.com/sites/Tech

Your sharepoint host is : contoso.sharepoint.com

6

Retrieve your sharepoint site name

Example : if your sharepoint url look like this : https://contoso.sharepoint.com/sites/Tech

Your sharepoint site name is : Tech

7

(Optional) In case if you want to index only a subfolder of your Sharepoint

Assuming you would like to index the folder "Process" into "HR" folder for the site "Tech"

your sub folder value will be : HR/Process

Take care about capital letters if you have it

Final output :

  • tenant id : the tenant id of your Microsoft Azure tenant where is linked to your Microsoft Sharepoint

  • client id : application client id of the app registration

  • client secret : secret key generated during the phase 2 of your app registration

  • sharepoint host : the sharepoint host of your Microsoft Sharepoint

  • sharepoint site name : the sharepoint site retrieved on phase 6

  • (optional) subfolder : the subfolder retrieved on phase 7

Last updated