HubSpot setup
For an overview of what the HubSpot connector indexes and how permissions are enforced, see Overview.
Requirements
Technical requirements
- An active HubSpot account (works on both GCP and AWS deployments).
- Access to the Glean admin console.
Credential requirements
- A HubSpot private app Access Token and Client Secret.
- Your HubSpot account (portal) ID.
- These credentials must be entered securely in the Glean admin console.
Permission requirements
A HubSpot super admin must create the integration (private app). The private app requires the following scopes:
crm.objects.users.readcrm.objects.owners.readcrm.objects.contacts.readcrm.objects.deals.readcrm.objects.companies.readtickets
These scopes allow the connector to read the CRM objects and owner/user data needed to enforce permissions during search.
Before you save the connector in Glean, complete the HubSpot private app steps in Configuration and Setup (app creation, scopes, webhooks, and credentials).
Configuration and setup
Configuring the HubSpot connector involves creating a private app in HubSpot, granting it the required scopes, setting up webhook subscriptions, and then entering the resulting credentials in Glean.
Prerequisites
- Access to the Glean admin console.
- You must be a HubSpot super admin. See HubSpot's documentation for details on permissions.
Create a private app
Initial steps
- In HubSpot, click the settings icon in the main navigation bar.
- Navigate to Integrations > Private Apps.
- Click Create a private app.
- On the Basic Info tab, enter a name, logo, and description for the app.
Grant scopes
- Go to the Scopes tab.
- Click to add scopes.
- Search for and select each of the following required scopes:
crm.objects.users.readcrm.objects.owners.readcrm.objects.contacts.readcrm.objects.deals.readcrm.objects.companies.readtickets
- Click Create app, then confirm creation.
If you previously set up the HubSpot connector using a private app, you must add the crm.objects.owners.read scope to your existing app. HubSpot preserves the access token when scopes are edited, so no token rotation or Secret Manager update is required.
Webhook subscriptions
- In the private app, go to the Webhooks tab.
- Click Create subscription.
- Select the object type to subscribe to:
- Contact
- Company
- Deal
- Ticket
- Select the event type(s) to subscribe to:
- Created
- Deleted
- Restored
- Association changed
- Repeat for each object type and event type combination you want to keep in sync in real time.
- Save the webhook subscriptions.
- Confirm the target URL and subscription settings are active.
Enter the app credentials in Glean
- In the Glean admin console, enter your HubSpot Account ID.
- Enter the private app's Access Token and Client Secret.
- Save the connector configuration.