Can Users be Lazy Migrated if They Are Created Via the Management API

Problem statement

When using a custom database that has Import Mode enabled, is it possible to import a user by creating them with the Management API? The GetUser script returns an error that the user already exists, but is there a way to modify or disable the script to get a user imported without their interaction?

Solution

A user cannot be imported through automatic migration by creating them with the Management API. The GetUser script runs to check if the same username exists in the external database to prevent a conflict. Until the user logs in, the source of truth for the user will remain in the external database.

The only method to import users without their interaction is through the Bulk User Import process.