Permission error when trying to create HubDB table
Our integration creates HubDB tables and it had been working fine until recently, it starts to get errors like:
{"status":"error","message":"This oauth-token (... removed ...) does not have proper permissions! (requires all of [hubdb-admin])","correlationId":"b7e5813f-aee4-4a19-b86d-ce2a49a7b5e2","requestId":"a5e98d69c79bbc472d77d192c5b5bf63"}
I verified that the token has hubdb scope. Is there any change recently that causes this error?
Does that user have HubDB admin permissions? Or just read/write/publish permissions? The HubDB admin permission setting is in the Admin tab of the user’s permission page.
Permission error when trying to create HubDB table
Derek, it is pretty urgent now, we keep getting another error for 2 customers at the moment.
But I’m afraid that we will have it in other portals as well.
Can you please help us figure out why we get this error now?
Error when calling API : [403] missing or invalid scopes”,
Permission error when trying to create HubDB table
Hi Derek,
I am also checking the issue, and the user has the Super admin role. Can you please advise?
“This user is a super admin. Super admins have access to everything in your HubSpot account”
Permission error when trying to create HubDB table
@Derek_Gervais We just encountered another issue on this, another user (portal ID: 4038184) tries to authenticate with hubdb as optional scope, and he has HubDB access, but our app doesn’t get HubDB scope. If we add hubdb to required scope, authentication fails with permission error. Any idea?
Permission error when trying to create HubDB table
Hey @Derek_Gervais, it looks like the issue is still not resolved, could you fix this?
{“success”:false,“message”:“Error when calling API : [403] missing or invalid scopes”,“data”:{“code”:403,“body”:"{“status”:“BAD_SCOPES”,“message”:“missing or invalid scopes”,“correlationId”:“f3d21523-836c-42dd-9f33-53bb36b77ce4”,“requestId”:“35844e98f089b72038bd2a818c48d669”}",“headers”:{“access-control-allow-credentials”:“false”,“content-type”:“application/json; charset=UTF-8”,“content-length”:“163”,“date”:“Sun, 19 Nov 2017 11:23:07 GMT”,“connection”:“close”},“response”:{“code”:403,“headers”:{“access-control-allow-credentials”:“false”,“content-type”:“application/json; charset=UTF-8”,“content-length”:“163”,“date”:“Sun, 19 Nov 2017 11:23:07 GMT”,“connection”:“close”},“body”:"{“status”:“BAD_SCOPES”,“message”:“missing or invalid scopes”,“correlationId”:“f3d21523-836c-42dd-9f33-53bb36b77ce4”,“requestId”:“35844e98f089b72038bd2a818c48d669”}"},“url”:"",“options”:{}},“sentry”:“9c4b8ed53ce6432c9f293654337f777f”}
Permission error when trying to create HubDB table
@Derek_Gervais I am one of the Inboundlabs customer and this is really critical for us now to get answers on this problem. We have business goals with campaign plannings, we absolutely need to setup landing pages and we are totally blocked on this because of the technical issues mentioned above. Time pass and money not coming because we are stuck.
Has there been a change in the permissions of the user that authorized the integration? There was recently a change made to how HubDB permissions are handled on the user level. This change shouldn’t have affected existing user permissions. Can you direct message me with the OAuth token you were using?
Permission error when trying to create HubDB table
This happens with many users including newly authorized users, I just tested with a known user and it was the same error, this user has no recent change. Will send you the token in a moment. Thanks!