Microsoft SharePoint
A BDK Book containing automation procedures for Microsoft SharePoint.
Overview
The Microsoft SharePoint Book (BDK) allows users to interact with and manage SharePoint sites, lists, document libraries, and files via the Microsoft Graph API. Users can automate tasks such as reading list items, uploading files to document libraries, and navigating across multiple sites.
Prerequisites
Learning the Microsoft SharePoint Book (BDK)
You need to learn the Sharepoint bdk Book in your agent:
Connectivity
Connecting to the Microsoft SharePoint BDK Book requires the following credentials:
Client ID (Application ID)
Client Secret (Application Password)
Tenant ID (Directory ID)
Obtaining SharePoint Credentials
Credentials are generated by registering an app in Microsoft Entra ID (formerly Azure AD), which gives the SharePoint BDK Book permission to access your data.
Sign in to the Azure Portal
Navigate to portal.azure.com with an account that has permissions to manage applications. From the main dashboard, select Microsoft Entra ID (under Azure Services).
Create a New App Registration
Click on + Add and select App registration.
Enter a Name for the app. For example: "Kognitos SharePoint Book Integration".
Under Supported account types, choose "Accounts in this organizational directory only".
Leave the Redirect URI field blank.
Click on Register to create the app.

Generate a Client Secret
Click on Manage on the left.
Select Certificates and Secrets from the dropdown menu.
Under Client Secrets, click on + New client secret.
Enter a description for the secret and choose an expiration period.
Click Add. Copy the Secret's Value as your Client Secret.
Client secret values cannot be viewed except immediately after creation. Be sure to save the secret when it is created before leaving the page!

Assign API Permissions
Click on Manage on the left.
Select Certificates and Secrets from the dropdown menu.
Click on + Add a permission, then select Microsoft Graph.
Choose Application permissions, as the Book will access SharePoint without a signed-in user.
Search for and select the following permissions:
Sites.Read.All
Sites.FullControl.All
Sites.Manage.All
Sites.ReadWrite.All
For more restricted access, you can use the Sites.Selected
permission, but this requires additional configuration to grant access to specific SharePoint sites.
Click on Add permissions.

Last updated
Was this helpful?