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=httparrow-up-right

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

8

(Optional) In case if your documents is not on the default documents library

Assuming you want to index documents from another documents library than the default one, your library name will be the name of the library itself

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

  • (optional) libraryname : the name of the library retrieved on phase 8

Last updated