Auth0 Home Blog Docs

Post registration hook is not getting called from users registered through custom database script


To migrate users from one tenant to another, we wrote a custom database script, which runs on user login and check in the old tenant if user exists. If it does it migrates user to new tenant with same auth0Id and password.
As per the definition of post registration hook, when user is registered to the new tenant, post registration hook should be triggered which is not happneing.
Can somebody explain me if this is the intended behaviour or an issue. Because If I get this working it would solve a big problem for me.
Thanks in advane