Reset password via Management API not detecting connection in body

Hi there,

I’m trying to reset user password by initially getting an access token via the /oauth/token endpoint and then using that token as a header when calling the /api/v2/users/${user_id} endpoint where ${user_id} is the auth0 id of the user. The issue is that it’s always defaulting to the first connection I created even when I explicitly include the other connection name in the body of the request. It works fine when I specify the first connection. Is this a known bug? And if so, is there a workaround for this?

Cheers!

Hi @ibrahimtareq,

Welcome to the Auth0 Community!

Is there any error returned from the Management API? Or it just defaults to the first connection?

Hi @supun,

Thanks for replying. I get the following error:

{
    "statusCode": 400,
    "error": "Bad Request",
    "message": "The connection (halalster-prod) does not exist.",
    "errorCode": "inexistent_connection"
}

I can confirm the connection exists in the account.

@supun can I get an update please?