I cannot authenticate with n8n cloud to a hubspot account. In the OAuth screen I get the message:
Insufficient scopes were provided. Please contact the app developer.
I cannot authenticate with n8n cloud to a hubspot account. In the OAuth screen I get the message:
Insufficient scopes were provided. Please contact the app developer.
Hey @Julian_David_Rath,
I am sorry that you faced the issue. May I know which resource youâre trying to request? Iâll check the permissions and get them fixed.
None yet, just trying to add an âHubSpot Developer Accountâ,
Hey @Julian_David_Rath,
I tested it, and it is working for me as expected. Can you please let me know which version of n8n are you using? I will try to test against that version and see if I can replicate the issue.
(All fields are filled out, its just not in the picture)
Pressing the button in the bottom opens the oauth consent dialogue, and then I get the exception.
Looking at the screenshot, I can say that youâre using the HubSpot Trigger node (correct me if I am wrong). Since, for the HubSpot Trigger node you have to create your own credentials, you will also have to add additional scopes to the app that you created. Step 9 talks about scopes in this documentation: HubSpot | Docs
Yes, i have also looked at the OAuth URL n8n is using, it requests contacts
nothing elseâŠ
Hey @Julian_David_Rath,
I created a new app in HubSpot, copied the Callback URL from n8n, and added the contacts
scope. I then connected it with the node, and it worked as expected. According to the HubSpot documentation you only need the contacts
scope.
I didnât get the error that you received. While connecting, the request got blocked from HubSpot, but after refreshing page, it worked as expected.
Como adiciona o contacts
escopo.?
Did you follow the steps in the docs?
Segui sim!
Acesse a pĂĄgina [inicial do HubSpot Developer (abre uma nova janela)] (https://developers.hubspot.com/).
Clique no botĂŁo Gerenciar aplicativos .
Clique no botĂŁo Criar aplicativo no canto superior direito.
Especifique um nome de aplicativo no campo Nome do aplicativo pĂșblico .
Clique na guia âAuthâ.
Use o ID de cliente fornecido e o segredo do cliente com suas credenciais da API HubSpot OAuth2 em n8n.
Se vocĂȘ estiver usando o nĂł HubSpot Trigger , copie o ID do aplicativo junto com as informaçÔes da etapa anterior.
Copie seu URL de retorno de chamada OAuth da tela âCriar novas credenciaisâ no n8n e cole na seção URL de redirecionamento .
Na seção Escopos, certifique-se de que o escopo âFuncionalidade OAuth bĂĄsicaâ esteja selecionado na lista suspensa Adicionar um escopo necessĂĄrio .
Selecione quaisquer outros escopos que vocĂȘ planeja usar com o n8nâŠ
Clique no botĂŁo Salvar para salvar suas configuraçÔes no HubSpotâŠ
De volta ao n8n, clique no botĂŁo cĂrculo na seção OAuth para conectar sua conta HubSpot ao n8nâŠ
Clique no botĂŁo Salvar para salvar suas credenciais.
Acontece estes erros!
For some reason your UI for adding the scopes itâs different than mine. In my HubSpot test account, under scopes, I have selected only: forms, contacts, and tickets. Can you please only select those 3?
Please do post messages here only in English! We extra created a forum for Spanish speaking people: https://es.community.n8n.io
Ah realize now that it is Portuguese. Please use then Google Translate to translate to English. Thanks!
Actually mine doesnât appear that way, I get the forms, tickets but I donât have the contacts option.
I apologize, Iâll post translated in the next ones, thanks!
I was checking Hubspotâs documentation and found out some interesting things:
contacts
scope was migrated to more granular options since November 1st. My UI is just like Gustavoâs and I cannot select contacts
as a scope.I believe @RicardoE105 's app was created before November 1st and is therefore still enabled to use the contacts
scope, but new apps wonât allow this.
I believe we will have to update our integration accordingly and add this information to our docs.
Good catch. I will have a look at it and report back.
Looks like HubSpot is slowly migrating the existing apps over to the new scope system but they arenât providing an ETA. You just get an email when itâs your turn.
Iâve got a similar problem to this that Iâm still troubleshooting (screenshots below).
I assume by 2024, the scopes have been migrated.
Anyone still running into this problem with a developer app?
The documentation also mentions an alternative by using an app token (HubSpot credentials | n8n Docs) but the n8n cloud version looks like this option isnât available any longer?