Auth0 Org Invitation > Problem with Post registration Hooks


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?