Nsufficient scopes were provided. Please contact the integrator

oauth

#1

Hi,

I’m trying to authenticate user by this url
https://app.hubspot.com/oauth/authorize?client_id=xxxxxxxx-5a6c-446e-ab4f-948093ec69a2&client_secret=xxxxxxxx-00e1-466f-b5be-bc3f66394c67&scope=contacts%20reports%20files&redirect_uri=https://192.168.1.130/test.php

and I am getting this error can anyone tell what I’m doing wrong?

Request for Integration Permissions

Uh oh!

Insufficient scopes were provided. Please contact the integrator.


I cannot find my application id for my main domain (DO NOT RUSH TO ANSWER)
#2

Hi @altaf

That error usually means that the scopes you set up for the app in the app settings don’t match the scopes you’re requesting in the scope= parameter for the authorize URL. Any scopes that you have selected in the app settings are considered required scopes, so you’d need to include everything you have selected in the scope= parameter.

If your app only requires the contacts, reports, and files scopes, only those three should be checked in the app settings.


#3

Thank you @dadams . providing all scopes fixed the issue.