Error connecting n8n to HubSpot

Hello.
I’m trying to connect my HubSpot account to n8n and I’m getting the error:

Connection failed.
Authorization failed because the specified scopes are missing [crm.objects.contacts.write, crm.objects.companies.write, crm.lists.write, crm.lists.read, crm.objects.deals.write], which are required for the app to function. Contact the app developer for assistance.

In Legacy Apps settings, I have:

Always required for all app installations. The required scopes must be included in the scope query parameter of each installation URL.

crm.lists.read
crm.lists.write
crm.objects.companies.read
crm.objects.companies.write
crm.objects.contacts.read
crm.objects.contacts.write
crm.objects.deals.read
crm.objects.deals.write
oauth

Redirect URLs:
localhost:5678/rest/oauth2-credential/callback

Example URL installation (OAuth):
https://app-eu1.hubspot.com/oauth/authorize?client_id=d839c817-e890-445c-b6f8-e02b457562e4&redirect_uri=http://localhost:5678/rest/oauth2-credential/callback&scope=oauth%20crm.objects.contacts.write%20crm.objects.companies.write%20crm.lists.write%20crm.objects.companies.read%20crm.lists.read%20crm.objects.deals.read%20crm.objects.deals.write%20crm.objects.contacts.read
Does anyone know what causes this error?

Hey @Grove_ - thanks for posting in the Community!
I’d like to tag in some Community experts here to see if they have any insight for us on what may be causing this error, as well as how to resolve it! @RubenBurdin, @franksteiner79, and @TomM2 - any thoughts?
Shane, Senior Community Moderator

Hi @Grove_

"It appears that your configuration is mostly correct. A few technical points to verify:

Confirm that the HubSpot user performing the app installation has all the required object-level permissions corresponding to the requested OAuth scopes.
Ensure that the OAuth installation URL explicitly includes all required scopes in the scope query parameter.

If these checks do not resolve the issue, it’s recommended to escalate to HubSpot Support, as they can trace the OAuth authorization flow and confirm scope validation at the API level.

I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.

Thanks!