I’m trying to get auto-migration set up and working for my Auth0 Connection. I have the Login and GetUser scripts inserted, and have verified that on login users are migrated correctly - including some rules to handle RBAC assignments since you don’t provide that out of the box.
The trouble I am having is that my application has 2 sides - a public website and a back-end customer management tool. Using this back-end tool we can update a customer’s profile data (name, email, etc). When doing so I use the .Net Auth0 Management API to fire an UpdateUser request (/api/v2/users/{id}). Your docs seem to indicate that calls to update a user’s email address or username would trigger auto migration, but I can see these are deprecated and replaced by UpdateUser. However when I run that call I get a “User does not exist” error, and can see that there was no attempt to fire my GetUser script.
Is there anything I can do to force the Management API to trigger migration on user updates. My only other option is to try and handle this error so I still update to my existing DB and then wait to migrate users only when they log in or change password. I feel this approach would be dangerous.
Any help appreciated.