Hello,
Is there a way that our custom database user migration script can identify which application it has been called and we switch API URL based on stored application metadata?
The idea is we have a different source of user migration APIs that is using a single login/custom database migration script.
What could be the best approach for this solution?
Appreciate the help.
Hi @denmark.daya,
To better understand the question, I need to ask if you have two databases with two different applications and want one database to be associated with one application.
Have a good one,
Vlad
Hi Vlad,
Apologies for the late response, but these are multiple Auth0 applications that would be using a single Auth0 database. as we are aiming to migrate multiple third-party user sources to a single Auth0 database.
Is there a way to detect which Auth0 application used the login script so we can perform a switch for the API URL?
Appreciate the help.
Hi again @denmark.daya,
Unfortunately, one Auth0 database connection cannot simultaneously do lazy migrations from two sources.
But since you specified that you have two different apps with two distinct pools of users, I suggest having two database connections for each database and doing the lazy migration separately. After all accounts have been migrated, you can export users from one database to another if unifying your databases is the end goal.
If you have any other questions, feel free to reach out.
Have a good one,
Vlad
1 Like
Thanks for the clarification.