We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Dec 27, 2018 3:29 AM
Hi,
I am trying to get the list of blog posts from the HubSpot API and I get the following error -
(403) This oauth-token does not have proper permissions! (requires all of [content-access])
There is scope sent in the URL for Oauth creation -
scope=contacts&optional_scope=content%20reports%20social%20timeline%20business-intelligence
You will notice the content scope is already present in it.
Can you please let me know what else is required here?
Solved! Go to Solution.
Dec 28, 2018 2:05 AM
Hi @Kalyani, according to the same document that @Isaac_Takushi pointed out -
" Optional scopes will be automatically dropped from the authorization request if the user selects a HubSpot account that does not have access to that tool (such as requesting the social scope on a CRM only portal). If you're using optional scopes, you will need to check the access token or refresh token to see which scopes were granted."
You can check where things aren't working as they should.
Jan 2, 2019 7:58 AM
Sounds good, @Kalyani! I look forward to hearing back from you.
Isaac TakushiAssociate Certification Manager |
Jan 2, 2019 12:04 AM
Hi Issac and Dhiraj,
Thanks for the input. I am working with one of our customers, I don't really have access to their details.
Let me investigate this further on my end and back to you with more details.
Thanks!
Dec 28, 2018 8:45 AM
Hey, @Kalyani.
@dhirajpandey is correct. There are other factors at play than just including the scope in either the scope
or optional_scope
parameters. That's why I asked for the Hub ID you are attempting to connect to.
Could you also share:
token
value)? We're looking for content
in the scopes
array.Isaac TakushiAssociate Certification Manager |
Dec 27, 2018 1:37 PM
Welcome, @Kalyani.
The scopes your app requests in the scope
and optional_scope
parameters aren't necessarily the scopes that the OAuth token can access (especially when dealing with an optional_scope
).
What is the Hub ID of the account throwing this error? Per this documentation, only accounts with paid Marketing Hub subscriptions have content
access.
Isaac TakushiAssociate Certification Manager |
Dec 27, 2018 11:10 PM
Thanks Isaac, but the same query with the API key authentication works fine. Thats why I am confused.
Dec 28, 2018 2:05 AM
Hi @Kalyani, according to the same document that @Isaac_Takushi pointed out -
" Optional scopes will be automatically dropped from the authorization request if the user selects a HubSpot account that does not have access to that tool (such as requesting the social scope on a CRM only portal). If you're using optional scopes, you will need to check the access token or refresh token to see which scopes were granted."
You can check where things aren't working as they should.
Dec 27, 2018 4:39 AM
Have you tried putting "content"
in scope
instead of optional_scope
?