N8n + GHL Marketplace App: How to use OAuth2 across multiple sub-accounts

I’m working on an integration where n8n connects to the GoHighLevel API through a custom Marketplace app. The workflow needs to get/create contacts in multiple sub-accounts where the app is installed.The problem:

  • When I authorize sub-account A via OAuth2, everything works fine.

  • As soon as I authorize sub-account B, the connection to A gets invalidated.

  • I can’t keep more than one sub-account active at the same time.

My questions:

  1. Is there a way to authenticate once for multiple sub-accounts?

  2. If I already installed the app in my sub account, why do i need to authenticate again? isn’t the OAuth2 client id/secret enough?

  3. Has anyone implemented this pattern successfully in n8n? Any guidance, examples, or best practices for handling this would be much appreciated.

hello @yotomations

Normally, you would need two separate connections. One for each sub account. I don’t know if the custom app supports multiple connections. If so, then you may set one connection to the custom app for the subA and another connection to the same app but with a different secret for the subB

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.