# Change User info straight after registration

**URL:** <https://community.auth0.com/t/change-user-info-straight-after-registration/87791>\
**Category:** Get Help\
**Tags:** registration, post-user-registrati\
**Created:** [July 28, 2022, 6:52am UTC](https://community.auth0.com/t/change-user-info-straight-after-registration/87791 "2022-07-28T06:52:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![akberiqbal](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/akberiqbal/32/35545_2.png) [@akberiqbal](https://community.auth0.com/u/akberiqbal)\
**Post date:** [July 28, 2022, 6:52am UTC](https://community.auth0.com/t/change-user-info-straight-after-registration/87791/1 "2022-07-28T06:52:10Z")

</div>

Hi,

Looking to make changes to the user (verify their email) after registration…

- [can’t happen on pre-register-hook](https://auth0.com/docs/customize/hooks/extensibility-points/pre-user-registration) because `If you are updating a user, note that only user_metadata and app_metadata can be changed`
- [can’t happen on post-register-hook](https://auth0.com/docs/customize/hooks/extensibility-points/post-user-registration) because `you should not attempt to modify the user from the hook itself (for example, using a PATCH call).`
- straight after login, the user doesn’t go through the `login flow`, so the rules don’t run
- using Actions is not an option, because we have an enterprise project with lots of custom rules
- upon callback, the user is not authenticated, so can’t call the management API to update user there

What would be the best place to call this [managementAPI function](https://auth0.github.io/node-auth0/ManagementClient.html#updateUser)?

Please advise, Thanks.

---

<div class="post-metadata">

**Author:** ![josiah\_devizia](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/josiah_devizia/32/33352_2.png) [@josiah\_devizia](https://community.auth0.com/u/josiah_devizia)\
**Post date:** [July 28, 2022, 11:16am UTC](https://community.auth0.com/t/change-user-info-straight-after-registration/87791/2 "2022-07-28T11:16:10Z")

</div>

Why are Actions not an option? This documentation implies that you can use both actions and rules.

> **[Migrate from Rules to Actions](https://auth0.com/docs/customize/actions/migrate/migrate-from-rules-to-actions#plan-your-migration)**
>
> Learn how to migrate your existing Auth0 Rules code to Auth0 Actions code.

---

<div class="post-metadata">

**Author:** ![akberiqbal](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/akberiqbal/32/35545_2.png) [@akberiqbal](https://community.auth0.com/u/akberiqbal)\
**Post date:** [July 28, 2022, 11:07pm UTC](https://community.auth0.com/t/change-user-info-straight-after-registration/87791/3 "2022-07-28T23:07:58Z")

</div>

Actions not available in the left side menu.

You shared the link of migration, which is an overkill for one feature… unless there is no way to do this at all

---

<div class="post-metadata">

**Author:** ![josiah\_devizia](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/josiah_devizia/32/33352_2.png) [@josiah\_devizia](https://community.auth0.com/u/josiah_devizia)\
**Post date:** [July 29, 2022, 11:20am UTC](https://community.auth0.com/t/change-user-info-straight-after-registration/87791/4 "2022-07-29T11:20:41Z")

</div>

I wasn’t recommending that you migrate all of your rules to actions. I was only showing that the documentation shows you can mix the two; but it is odd that you don’t have the Actions bar at all. What happens when you call this management api endpoint?

> **[Auth0 Management API v2](https://auth0.com/docs/api/management/v2#!/Actions/get_actions)**

---

<div class="post-metadata">

**Author:** ![akberiqbal](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/akberiqbal/32/35545_2.png) [@akberiqbal](https://community.auth0.com/u/akberiqbal)\
**Post date:** [August 1, 2022, 1:05am UTC](https://community.auth0.com/t/change-user-info-straight-after-registration/87791/5 "2022-08-01T01:05:10Z")

</div>

Actions menu not available

- [Actions is not available on Private Cloud](https://auth0.com/docs/customize/actions/limitations) ☹

what happens if we add managementAPI point inside the hooks?

- threw `extensibility error`

the solution we implemented:

- set a flag inside app\_metadata (inside the pre-register hook)
- read this flag and then call the managementAPI function inside a rule

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 21, 2024, 10:47pm UTC](https://community.auth0.com/t/change-user-info-straight-after-registration/87791/6 "2024-11-21T22:47:40Z")

</div>

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