# Password Import Hook and Okta User ID

**URL:** <https://devforum.okta.com/t/password-import-hook-and-okta-user-id/22444>\
**Category:** API\
**Created:** [November 15, 2022, 7:32pm UTC](https://devforum.okta.com/t/password-import-hook-and-okta-user-id/22444 "2022-11-15T19:32:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tparikka](https://avatars.discourse-cdn.com/v4/letter/t/8e7dd6/32.png) [@tparikka](https://devforum.okta.com/u/tparikka)\
**Post date:** [November 15, 2022, 7:32pm UTC](https://devforum.okta.com/t/password-import-hook-and-okta-user-id/22444/1 "2022-11-15T19:32:18Z")

</div>

I am working on implementing an API endpoint to support the [Password Import Inline Hook](https://developer.okta.com/docs/reference/password-hook/#sample-json-payload-of-request). Is there a way to get the [Okta User ID](https://devforum.okta.com/t/is-user-id-unique-and-always-20-character-length/2487) included in the password import event to help with looking up the user record on my side, or will I be required to use the Username I see in the sample request?

---

<div class="post-metadata">

**Author:** ![warren](https://avatars.discourse-cdn.com/v4/letter/w/97f17d/32.png) [@warren](https://devforum.okta.com/u/warren)\
**Post date:** [November 22, 2022, 11:12pm UTC](https://devforum.okta.com/t/password-import-hook-and-okta-user-id/22444/2 "2022-11-22T23:12:28Z")

</div>

The password import inline hook enables migration of users from another data store in a case where you wish the users to retain their current passwords. It is meant to be used in conjunction with the Create User with password import inline hook flow that is provided by the Users API.

You get the Okta user id when you make the request in the doc below:

> **[Users | Okta Developer](https://developer.okta.com/docs/reference/api/users/#create-user-with-password-import-inline-hook)**
>
> Secure, scalable, and highly available authentication and user management for any app.

You are correct that you can use the username to do the lookup.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [February 12, 2024, 10:24pm UTC](https://devforum.okta.com/t/password-import-hook-and-okta-user-id/22444/3 "2024-02-12T22:24:09Z")

</div>

Closed on February 12, 2024, 10:24pm UTC

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