# Mirror User in backend on self-service registration

**URL:** <https://devforum.okta.com/t/mirror-user-in-backend-on-self-service-registration/15702>\
**Category:** Questions\
**Created:** [August 25, 2021, 7:41pm UTC](https://devforum.okta.com/t/mirror-user-in-backend-on-self-service-registration/15702 "2021-08-25T19:41:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MMMatt](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/mmmatt/32/2920_2.png) [@MMMatt](https://devforum.okta.com/u/MMMatt)\
**Post date:** [August 25, 2021, 7:41pm UTC](https://devforum.okta.com/t/mirror-user-in-backend-on-self-service-registration/15702/1 "2021-08-25T19:41:44Z")

</div>

We are wanting to initialize the user’s profile/settings in our backend when they have created their account with self-service registration. I was looking at the inline hooks but it doesn’t look like that sends the user id? Is that true? If so what is the best way to make this happen? We don’t want to have an unsecured “create user” endpoint and would rather use hooks of some sort to make sure everything stays up to date. Thanks for any help or tips!

---

<div class="post-metadata">

**Author:** ![okra-okta](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/okra-okta/32/2838_2.png) [@okra-okta](https://devforum.okta.com/u/okra-okta)\
**Post date:** [August 25, 2021, 9:42pm UTC](https://devforum.okta.com/t/mirror-user-in-backend-on-self-service-registration/15702/2 "2021-08-25T21:42:52Z")

</div>

Per the documentation, I don’t see the user id in the payload but there is the email.  
[https://developer.okta.com/docs/reference/registration-hook/#sample-json-payload-of-request](https://developer.okta.com/docs/reference/registration-hook/#sample-json-payload-of-request)

Could you make an API call to the Users endpoint to retrieve the user id?  
[https://developer.okta.com/docs/reference/api/users/#get-user-with-login](https://developer.okta.com/docs/reference/api/users/#get-user-with-login)

---

<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 8, 2024, 7:00pm UTC](https://devforum.okta.com/t/mirror-user-in-backend-on-self-service-registration/15702/3 "2024-02-08T19:00:14Z")

</div>

Closed on February 8, 2024, 7:00pm UTC

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