Skip to main content

Hi, 
I am looking to integrate to hubspot using cohorts sync but I keep getting a permission error while doing so - saying that i do not have the right scopes. We have one sync created in a dev account but need help to get it to our actual production account

{
  "status": "error",
  "message": "This app hasn't been granted all required scopes to make this call. Read more about required scopes here: https://developers.hubspot.com/scopes.",
  "correlationId": "f135cc39-78a5-458e-948a-7d7025ac4927",
  "errors": e
    {
      "message": "All of the following scopes are required.",
      "context": {
        "requiredScopes":  
          "analytics.behavioral_events.send"
        ]
      }
    }
  ],
  "links": {
    "scopes": "https://developers.hubspot.com/scopes"
  }


What is not clear is - I dont want to set up events just cohorts - why would it ask for this permission - also your documentation is not clear on what hubspot plan i need to be on to enable this 
The same flow for me is enabled on another account as well


Hi Swym team,

Thank you for contacting Amplitude Support. Happy to help!

I looked at your dev and prod projects, and it looks like you managed to sync cohorts to HubSpot.

May I ask if you are still experiencing the error? If so, it might be because you have set up the HubSpot destination using the Custom Behavioral Events API, instead of the HubSpot's Contacts API. One of our customers shared a potential solution via the Community post below.

https://community.amplitude.com/building-and-sharing-your-analysis-58/amplitude-to-hubspot-cohort-sending-2505

I hope this helps. Please don't hesitate to let me know if you have any questions.

Best regards,
Thao


P.S. Checkout upcoming events and user meetups on our events page.

Yes we were able to set up a cohort but the updates are only pushed if contact does not exisit - is there some mode which allows to update contact properties?


Hi Swym team,

Thank you for your response!

Currently, Amplitude's cohort syncs don't support user property syncs due to technical limitations. This means that while you can create a list of users in HubSpot through cohort sync, updating existing records in HubSpot with Amplitude data is not possible.

As an alternative, you can use the HubSpot Event Streaming integration to forward Amplitude events and properties to Hubspot. More details can be found in our documentation.

https://www.docs.developers.amplitude.com/data/destinations/hubspot-event-streaming/

I hope this helps. Please don't hesitate to let me know if you have any questions.

Best regards,
Thao


P.S. Checkout upcoming events and user meetups on our events page.

Reply