Connect Sharepoint
This guide provides a step-by-step walkthrough for setting up SharePoint folders as knowledge bases using Azure Active Directory applications.
Last updated
This guide provides a step-by-step walkthrough for setting up SharePoint folders as knowledge bases using Azure Active Directory applications.
Last updated
Register Azure Active Directory (AAD) Application in Azure Portal
For detailed guidance, refer to our Connect Azure AD guide.
Go to the Overview page and obtain the Client ID (Application (client) ID) and Tenant ID (Directory (tenant) ID). Save this information in a text file.
Go to Sites Admin App Registration, you give Graph API permission with Application.Read.APP and Sites.FullControl.All.
Remember to grant admin consent for these permissions.
Navigate to the Certificate & Secrets page to create secrets.
Copy the secret key value to the text file containing the Client ID and Tenant ID. Your text file should include:
Follow the steps above, but only create Certificates & Secrets with Sites.Selected
permission.
Copy the secret key value to the text file containing the Client ID and Tenant ID. Your text file should include:
Refer to Graph API Documentation.
Use the Client ID, Client Secret, and Tenant ID of the Site Admin App to assign the Target Application permissions to a specific SharePoint Online site.
Steps to Use Graph API:
Step 1: Get Token from Microsoft Graph API
Use Postman to call the API.
Step 2: Get Site ID for the Target Application
Example: To connect with the "Site Data Local Test" site, obtain the site ID: trustsoftjsc.sharepoint.com,de3c6e23-0395-4050-8157-46a1b5b1482e,3ec5a27e-56a1-4d99-b9d1-87a27b6335e3
.
Step 3: Assign Permissions to the Target Application
Make a POST request to the following endpoint:
Step 4: Recheck Site Permissions
Verify the permissions assigned to the site.
Provide the Client ID, Client Secret Key, Tenant ID of the Target Application, and a list of selected sites to connect to the Knowledge Bots platform.