APIs & Integrations

JMistry
メンバー

Facing issue in scope=contacts

解決

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 いいね!
1件の承認済みベストアンサー
RMones
解決策
投稿者 | Platinum Partner
投稿者 | Platinum Partner

Facing issue in scope=contacts

解決

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

元の投稿で解決策を見る

1件の返信
RMones
解決策
投稿者 | Platinum Partner
投稿者 | Platinum Partner

Facing issue in scope=contacts

解決

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