Why Do I Get an Error When Trying to InvokeWorkflowForExternalUser with the SDK?

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

because I get this error when i try to invokeWorkflowForExternalUser with the sdk

Hey , this error is not related to 100 user limit.

This error indicated that you’re trying to use Pipedream Official Auth for Pipedream connect, which is not allowed.

You need to create your own oauth client, see doc here https://pipedream.com/docs/connect/managed-auth/quickstart

is there anyway i can deploy a workflow and invoke it with different users accounts?

how can i make it work with this option

because there seems to be nothing in the documentation about this

shouldn’t that work since i have this ?

Screenshot 2025-07-13 at 17.14.53.png

I pass external user Id but i still get that error

okey I made it work I think :smile:, thanks for the help

1 more question, how do I choose which one to send to, I have two accounts on 1 external user Id and i want to do something with both of them, it now seems to always connect with the one I added the latest

I invoke using invokeWorkflowForExternalUser

Check out the information here: https://pipedream.com/docs/connect/managed-auth/users

You are correct, when executing a workflow on behalf of your end users, you only specify the user ID, Pipedream will always use the most recently created connected account for the relevant app in the workflow.

is there no way to use a different one ?

Not currently, executing workflows on behalf of your end users currently only supports referencing a single connected account for a given app, per user.

Hey I am curious how did you resolve running workflow with official oauth is not allowed in my i case i had to use custom oauth client to get it resolved!
I am wondering is there any other way besides using custom oauth to invoke a workflow for external users?
@U02A06JPKEH Appreciate If you could throw some light on it!

I did with the custom oauth as well

That’s exactly the resolution and what that error message is referencing (it could be improved though)

Yes, but would be awesome if it was possible to choose from one of the accounts and not the latest one