Skip to main content

SharePoint OAuth Setup

Follow these steps to configure OAuth authentication for BonData.

Step 1: Register an App in Azure AD

  1. Go to Azure Portal
  2. Navigate to Azure Active DirectoryApp registrations
  3. Click New registration
  4. Configure:
    • Name: BonData SharePoint Integration
    • Supported account types: Accounts in any organizational directory
    • Redirect URI: Web - https://app.bondata.ai/auth/oauth2/callback
  5. Click Register

Step 2: Configure API Permissions

  1. Go to API permissionsAdd a permission
  2. Select Microsoft Graph
  3. Choose Delegated permissions and select:
    • Sites.Read.All - Read items in all site collections
    • Files.ReadWrite.All - Read and write files
  4. Click Add permissions
  5. Click Grant admin consent (requires admin)

Step 3: Create Client Secret

  1. Go to Certificates & secretsClient secrets
  2. Click New client secret
  3. Add a description and select expiration
  4. 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

Step 5: Enter Credentials

Click Connect in BonData to authorize via OAuth using your Azure AD app credentials.

Required Fields

OAuth authentication is handled through the Azure AD app. No additional fields are required after setup.