
Pratula.69048 (Customer) asked a question.
I have setup a New Joiner flow in Okta based on new user creation event from HR system.
I want to continue using AD and Entra ID downstream for managing passwords, just need a one time password in Okta to be assigned for user to login (which can be mailed to the manager).
What would be the best way to handle this scenario?

@Pratula.69048 (Customer) -- The user has to be in an "Activated" status this includes "Pending User Action". But if they are you can use either the following endpoint or a combination of it and update password endpoint (if you want to generate your own password)
Expire the user password with a temp password generated:
https://developer.okta.com/docs/api/openapi/okta-management/management/tag/UserCred/#tag/UserCred/operation/expirePasswordWithTempPassword
Update Password:
https://developer.okta.com/docs/api/openapi/okta-management/management/tag/UserCred/#tag/UserCred/operation/changePassword
So the "Expire with password generated" will give a temp password. However, if you want a more complex one or to generate your own you still have to take that step to be able to leverage Update password since it requires you knowing the current password.