Insufficient scopes were provided

I’m creating a public app for an integration but im still getting this error once i try to install the app.

eagiraldor_0-1669796552924.png

The URL is:
https://app.hubspot.com/oauth/23477576/authorize?scope=crm.objects.owners.read+crm.objects.contacts.write+crm.objects.companies.write+crm.objects.companies.read+crm.lists.read+crm.schemas.contacts.read+crm.objects.contacts.read+crm.schemas.companies.read&optional_scope=forms+tickets+automation+crm.schemas.deals.read+crm.objects.deals.read+crm.objects.deals.write+crm.lists.read+content&client_id=545f27e5-53c5-48ec-8002-5605ecaf3d78&redirect_uri=https%3A%2F%2Fwww.crmperks.com%2Fsf_auth%2F
And my scopes on app are those:

Can someone help me to understand why is not working?

@eagiraldor

Hi.

I think your ‘URL’ scope is insufficient.

URL’s scopes: 8

app scpoes: 16

Your ‘authorize URL’ is copy from app ‘Auth settings’?

If not, please copy and use this.

Thanks.

Tried with the one provided from Auth settings and still the same (this is one created from a plugin provider) but i get same response with both URLs.
Also tried to remove the scopes from “optional scopes” and is the same

@eagiraldor

‘the one provided from Auth settings’

Can you paste the authorize url? ( copy from app setting )

URL ‘scopes’ count is same as app 'selected scopes?

Thanks.

This is the one copied from auth tab:
https://app.hubspot.com/oauth/authorize?client_id=545f27e5-53c5-48ec-8002-5605ecaf3d78&redirect_uri=https://www.crmperks.com/sf_auth/&scope=content%20automation%20oauth%20forms%20tickets%20crm.lists.read%20crm.objects.contacts.read%20crm.objects.contacts.write%20crm.objects.companies.write%20crm.schemas.contacts.read%20crm.objects.companies.read%20crm.objects.deals.read%20crm.objects.deals.write%20crm.schemas.companies.read%20crm.schemas.deals.read%20crm.objects.owners.read
Still causes the same message

@eagiraldor

Thank you for auth URL.

URL scopes is same as app scopes.

so, Is your account has required scopes?

please check below.

https://community.hubspot.com/t5/APIs-Integrations/Insufficient-scopes-were-provided-Please-contact-the-app/m-p/489716

If you can authorize with minimum scopes (like ‘tickets’ only ),

your account doesn’t have enough scopes.

Thanks!
Where i can check or change account scopes?

@eagiraldor

Please check this.

Please search your own account, and check your permission.

Hi @skimura
I’m already a super admin, so i should have all permissions

The fix was remove all scopes on app and add just in install URL