Can User Accounts Be Created Programmatically via API on Pipedream Connect Without User Intervention?

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

On Pipedream Connect,
Is it possible to create user accounts (app connections) via API? For example, Odoo connection uses a Token not Oauth so I’d like to programmatically create the connections for all my users via API without their intervention (I can create their tokens from a privileged account)

Or in Google, I could use a Service Account with Domain-wide delegation to create user tokens and create user connections for the domain directly without their intervention

Not currently, but it’s something we’ve talked about in the past

Would you foresee an ongoing need to add accounts that way, or is this more of a one-time migration of existing accounts / keys?

I think this can be very useful for business uses as the ones described above.

Also for people migrating current systems to Connect that could prove very useful. A way to bring your own credentials should really be there

It did surprise me to not find an API endpoint where I could programmatically create credentials skipping the frontend flow.

Yea totally agree in concept, but actually in practice it’s basically impossible to support for short lived tokens, since you need to refresh them, which also means you’d have to import the refresh tokens, make sure you’re using the same OAuth client credentials, and that the next refresh honors the expiry of the current tokens.

For static keys or long-lived tokens it’s probably more straightforward, the request just hasn’t come up from a customer yet.

Static ones are my current focus. Those do not normally have nice frontend flows like oauth.

I guess I’ll have to pester presales so that the request comes from your sales funnel :zany_face:

Can you tell me more about the general use case? What kind of app are you building, and roughly how many users / keys are we talking about?

Odoo is an ERP, so the users here are Employees. In this particular use case I am defining several workflows that sync data in/out of Odoo on behalf of our internal users (around 25).

To facilitate empoyee onboarding, it was my intention to create the Connect account for the employee automatically from an onboarding workflow (I can generate the user token via API, but can’t push it to Connect). ATM I am just delivering the token to HR so they can manually do the Connect part.

(our current pipedream usage is inline with this: bridging internal tools; this is an accounting / law firm)