Post user registration action with Management API

I’m trying to make a post user registration action to call the Management API and send a change-password email to the user.
Is this possible?
If yes, what permissions should I use in the M2M client to call POST/dbconnections/change_password ?

Hi @analuspi,

Welcome to the Auth0 Community!

Yes, that is possible!

You should be able to call POST /dbconnections/change_password directly in your Post-User Registration action. There are no permissions required for that request.

For example:

curl --request POST \
  --url https://{yourDomain}/dbconnections/change_password \
  --header 'content-type: application/json' \
  --data '{"client_id": "{yourClientId}","email": "EMAIL", "connection": "CONNECTION", "organization": "ORGANIZATION_ID"}'

Please refer to our Authentication API Explorer - Change Password documentation.

Let me know if you have any further questions.

Thanks,
Rueben

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