
w7p41 (w7p41) asked a question.
I'm using the below API to generate the temporary password. Its returns the password in response.
Is it possible to send the generated password to user via email by OKTA?
`${config.okta.b2cUrl}api/v1/users/${oktaId}/lifecycle/expire_password?tempPassword=true`;

Hello Sasidhar,
It is not possible to send the generated password via email by Okta through the Expire Password API call. If you want to send an email from Okta, you can use the Reset Password API call which supports the sendEmail parameter:
https://developer.okta.com/docs/reference/api/users/#reset-password
Dan Pica
Technical Support Engineer
Okta Global Customer Care