Auth0 Org Invitation > Problem with Post registration Hooks

Hi,

I am trying to create users by inviting them to the Organization (new feature). What we do is

  • from the backen we create an Invite email with some metadata in user_metadata to map back to our system.
  • When the user clicks on the link they are redirected to the Auth0 sign up prompt.
  • Once the user enters a password, a new user is created in Auth0 with user_metadata from step 1.

All this works correctly. Now what we want is to notify our system when the user registration happens so we can activate some things in our backend. We added a post-registration-hook where we make that API call.

Problem: We don’t get the user_metadata in this post-registration-hook . But it is there on the User once the user is created.

How do i handle this scenario?

Hey there!

As this topic is related to Rules - Hooks - Actions and Rules & Hooks are being deprecated soon I’m excited to let you know about our next Ask me Anything session in the Forum on Thursday, January 18 with the Rules, Hooks and Actions team on Rules & Hooks and why Actions matter! Submit your questions in the thread above and our esteemed product experts will provide written answers on January 18. Find out more about Rules & Hooks and why Actions matter! Can’t wait to see you there!

Learn more here!