What is the Best Practice for Handling Multiple User Connected Accounts per App in Pipedream Connect?

This topic was automatically generated from Slack. You can find the original thread here.

hey guys quick question. i’m using pipedream connect. I’m curious what’s the best practice for handling multiple user connected accounts per app (e.g. two different emails with gmail for one user). What’s the best way to save those different connections and then let users select them when configuring components? Would I need to create a new user on pipedream with a new user id for each connection?

What part of the Connect API are you using? You can typically pass the specific accountId in addition to the externalUserId in most parts of the API.

Oh perfect. I was blanking on there being an accountId separate to the external user id. I appreciate the support danny!

But are the two accounts for the same external user and same app?

Yes that is correct

Hmm as far as I know we don’t support yet more than one account for the same app for the same user

Oh is this on the connect product? It seems to be a supported pattern in the pipedream workflows

Yeah specifically in Connect

Yes we do. That was a constraint initially but we do support multiple accounts for every part of Connect except invoking workflows.

Oh nice I did not know