APIs & Integrations

KMcKeand3
Member

'Insufficient scopes were provided' error for certain accounts

I've got a question about permissions with the API. Some of our customers are receiving the following error message:
 
Couldn't complete the connection, This account doesn't have access to some HubSpot features that are required by this app. Please contact the app developer.
(For Hubspot devs I believe the app ID here is 1286029)
 
We're requesting the following list of scopes:
 
- crm.schemas.contacts.write
- oauth
- forms
- integration-sync
- tickets
- crm.objects.contacts.write
- e-commerce
- crm.schemas.custom.read
- crm.objects.custom.read
- crm.objects.custom.write
- crm.objects.companies.write
- crm.lists.write
- crm.objects.companies.read
- crm.lists.read
- crm.schemas.contacts.read
- crm.objects.contacts.read
 
My guess is that not all Hubspot account types have access to these. Can you let me know which ones are limited so that we can scale back our scopes or at least let people know that their account type isn't supported and what they need to move up to?
0 Upvotes
3 Replies 3
Jaycee_Lewis
Community Manager
Community Manager

'Insufficient scopes were provided' error for certain accounts

Hey, @KMcKeand3 👋 This document has a section for Scopes and subscription requirements. It also mentions using the optional_scope so that, “customers using CRM-only accounts can still authorize your app, even if they can't access all of its scopes.”

 

Have fun building! — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
KMcKeand3
Member

'Insufficient scopes were provided' error for certain accounts

Hi @Jaycee_Lewis I just wanted to ping you on this to see if you can help me out as I've not been able to find the answer anywhere! Thanks!

0 Upvotes
KMcKeand3
Member

'Insufficient scopes were provided' error for certain accounts

Hey @Jaycee_Lewis - thanks for your reply here!

 

Reviewing this table, I can see the two which we request aren't listed:

- crm.objects.custom.read

- crm.objects.custom.write

 

Every other one is available for 'All accounts'.

 

Do you know why this would be happening? Is it these two permissions that we need to make optional?

0 Upvotes