How to send password email to user when we create user from REST API

Hello All,

I’m creating USER from rest API. But newly user not getting any email for password.
Its working if we create it from Admin area but not when we create it via REST API V4.1

Thanks in Advance

I don’t really know the answer, but I’m thinking you could achieve this with some custom code in an after_save logic hook. When the user is created, the hook is called, and you can check if it comes from the API with some field, and trigger the email sending.