For some reason when we invoke the above api to update a users email, it calls the GET user script on our custom database. This makes no sense as we have the toggle button enabled to automatically migrate users to auth0 when they login.
This issue was resolved through support, however I’d like to share the details here for future developers who encounter this issue.
Even though the user being updated has already been migrated, if we are changing the email address then the get user scripts will be invoked in order to check that the new email is NOT associated to a user that hasn’t been migrated yet.