APIs & Integrations

JMistry
Membro

Facing issue in scope=contacts

resolver

Hello @webdew 

 

I am also facing the same issue. According to this page conversation I got that now contacts now migrated as a crm.schemas.contacts.read or crm.schemas.contacts.write.

But, what should I pass in scope instead of contacts in this URL  if I selected both crm.schemas.contacts.read and crm.schemas.contacts.write as the scope in my app Auth tab

https://app.hubspot.com/oauth/authorize?client_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&scope=contacts%20automation&redirect_uri=https://www.example.com/

JMistry_1-1638595361490.png

 

Because if I passed contacts as a scope it will give me an error 

Couldn’t complete the connection Insufficient scopes were provided. Please contact the app developer.

JMistry_0-1638595361497.png

 

 

Thanks and Regards.

0 Avaliação positiva
1 Solução aceita
RMones
Solução
Colaborador(a) | Parceiro Platinum
Colaborador(a) | Parceiro Platinum

Facing issue in scope=contacts

resolver

Hi @JMistry ,

 

Try it with: 

https://app.hubspot.com/oauth/authorize?client_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&scope=contacts%20automation&redirect_uri=https://www.example.com/
https://app.hubspot.com/oauth/authorize?client_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&scope=crm.schemas.contacts.read%20crm.schemas.contacts.write&redirect_uri=https://www.example.com/

So the new or other scopes could be added with a space or html sign %20 to your scopes string.

 

But if you only select crm.schemas.contacts.read, crm.schemas.contacts.write, you cannot add automation and contacts to your Authorization URL. So you have to add the Legacy Contacts and Automation scope in you developer account. Or you have to remove them from the authorization url.

 

Regards Ronald

Exibir solução no post original

1 Resposta 1
RMones
Solução
Colaborador(a) | Parceiro Platinum
Colaborador(a) | Parceiro Platinum

Facing issue in scope=contacts

resolver

Hi @JMistry ,

 

Try it with: 

https://app.hubspot.com/oauth/authorize?client_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&scope=contacts%20automation&redirect_uri=https://www.example.com/
https://app.hubspot.com/oauth/authorize?client_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&scope=crm.schemas.contacts.read%20crm.schemas.contacts.write&redirect_uri=https://www.example.com/

So the new or other scopes could be added with a space or html sign %20 to your scopes string.

 

But if you only select crm.schemas.contacts.read, crm.schemas.contacts.write, you cannot add automation and contacts to your Authorization URL. So you have to add the Legacy Contacts and Automation scope in you developer account. Or you have to remove them from the authorization url.

 

Regards Ronald