Error connecting n8n to HubSpot

Grove_
Member

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_...

Does anyone know what causes this error?

0 Upvotes
1 Accepted solution
GRajput
Solution
Recognized Expert | Platinum Partner
Recognized Expert | Platinum Partner

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!






Gaurav Rajput
Director, MarTech( Growth Natives)

Book a meeting


View solution in original post

0 Upvotes
2 Replies 2
GRajput
Solution
Recognized Expert | Platinum Partner
Recognized Expert | Platinum Partner

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!






Gaurav Rajput
Director, MarTech( Growth Natives)

Book a meeting


0 Upvotes
STierney
Community Manager
Community Manager

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





loop


Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.

Learn More




0 Upvotes