SharePoint OAuth Setup
Follow these steps to configure OAuth authentication for BonData.Step 1: Register an App in Azure AD
- Go to Azure Portal
- Navigate to Azure Active Directory → App registrations
- Click New registration
- Configure:
- Name:
BonData SharePoint Integration - Supported account types: Accounts in any organizational directory
- Redirect URI: Web -
https://app.bondata.ai/auth/oauth2/callback
- Name:
- Click Register
Step 2: Configure API Permissions
- Go to API permissions → Add a permission
- Select Microsoft Graph
- Choose Delegated permissions and select:
Sites.Read.All- Read items in all site collectionsFiles.ReadWrite.All- Read and write files
- Click Add permissions
- Click Grant admin consent (requires admin)
Step 3: Create Client Secret
- Go to Certificates & secrets → Client secrets
- Click New client secret
- Add a description and select expiration
- Copy the secret value immediately - it won’t be shown again
Step 4: Note Your Credentials
- Client ID: Found on the Overview page (Application ID)
- Client Secret: The value you just copied