"Missing or invalid scope" when passing in contacts as required scope
Getting an error about missing or invalid scopes. Only requesting the ‘contacts’ scope. Any feedback on this?
This was working fine last week and is borked without any changes.
Here’s the url that initiates the oAuth handshake. https://app.hubspot.com/oauth/authorize?client_id=<client_id>&scope=contacts&redirect_uri=<redirect_uri>
Response "status":"BAD_SCOPES","message":"missing or invalid scopes","correlationId":"503ab336-e1d2-4324-8ebb-be2f29f224b6","requestId":"ecd667f1a9f434160564ae0397dccad9"
Thank you for that info; in this case, I would suspect that the specific portal(s) you're seeing this error for authorized your integrations, and then downgraded to some lower product tier. This would mean that the refresh token you have is still valid, but they're likely missing one or more required scopes. If you direct message me a particular refresh token and your full authorization URL, I can investigate further.
Do you see this error when using an existing refresh token to generate a new access token? Or when using an authorization code to generate a new access/refresh token? Can you send me a link to your developer portal?
Let's back up a bit; what request are you making when you're getting the BAD SCOPES error? Is it when trying to refresh an access token, or when using the code to get a refresh and access token for the first time?
That seems strange; I checked out that user's permissions, and it all checks out according to the scopes that brix is requesting. If that particular user is selecting the correct portal, I would expect the installation to succeed. I tested this out with a test user/portal that had identical permissions and I was able to successfully install the brix integration.
Can you give me any other details on the user/portal? Is it possible a different user was logged in, or that the user selected the wrong portal?
I think the issue here is that the user permissions you included only allow the user to edit the contacts they own. That permission isn't enough to grant full read/write permission to the brix integration, since that user would be authorizing the integration to make changes to contacts that they themselves do not have permission to edit.
Can you have a user with full contact view/edit permission authorize the integration? Or, you can give that user full edit permissions.
Can you give me the Hub ID of the portal that is experiencing those errors? Is it possible that their access tokens are missing a scope required for an API you're trying to access?
The user account has the required permissions to connect to the integration and the portal itself is running on Marketing Enterprise. Could you help resolve this issue?
I’m not running into any errors with the contacts scope. Can you double check that all the scopes that are checked off in your app settings are included in your initialization URL?
"Missing or invalid scope" when passing in contacts as required scope
I’m getting this error every time in our production integration at Help Scout. Our customers aren’t able to install or connect the integration because of this error. No code changes have been made and the app has been working fine since June.
@Derek_Gervais any idea what the root of this is and when we can expect a fix?
"Missing or invalid scope" when passing in contacts as required scope
Hi all,
The team recently rolled back changes made to the OAuth system, so this issue should now be resolved. If people experiencing this issue could direct message me with their client ID and refresh token it would help us track down the issue going forward.