Change Profile mastering from LDAP to Okta

Hi Team,

Currently we have integrated with LDAP using agent and enabled delegated authentication. Users are profile mastered in LDAP.

Now I would like to make those users mastered in Okta and set their existing LDAP password in Okta.

I know we can do that using Okta API (Create User with imported hashed password) if we have salt, algorithm and hashed value .

However what is the best approach to migrate those ldap mastered users into Okta mastered users along with their existing password?

Any inputs are highly appreciated.

Thanks,
Pavan