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).
Feb 2, 2022 9:11 AM
Hi there,
I'm working on changes in the API client we are using and recently we've started using get recent engagements endpoint. The main problem is that for about 10% of our customers this endpoint responds with 400 error:
Unknown Contacts Search API failure: [400] {"status":"error","message":"User xxx does not have permissions on portal yyy","correlationId":"zzz"}
At the same time the endpoint responsible for fetching all engagements works as expected.
What could be the problem here? The access tokens were are using have the same scopes. If you wish, I can provide you an example user, portal, and correlation IDs.
Thanks,
Przemysław
Feb 4, 2022 6:17 AM
Assuming you're using OAuth, I'd guess it's nearly certainly related to the permissions/existence of the HubSpot User who originally installed the app within the given portal.
@IsaacTakushi has covered this in the following related forum threads:
Like @Willson has covered a related issue here:
Hope this helps.
All the best,
Zach
Feb 7, 2022 1:21 AM
Hi Zach,
Thank you. Is there any way to check these permissions via API? I would like to do that when someone (re)install the app so I can let them know before the error occurs.
Thanks,
Przemysław
Feb 3, 2022 9:58 AM
@zaklein , any thoughts?
![]() | Make sure to subscribe to our YouTube channel where you can find the HubSpot Community Developer Show |