How to bulk import users with no password hash?
-
I'm trying to import users without a password hash from Frontegg using
importUsers
in the TypeScript SDK.Although the
importusers
documentation, https://fusionauth.io/docs/apis/users#request-6, says only a username and email is required, the code is telling meYou must specify the [user.password] property for each user.
I've set
passwordChangeRequired
to true. I see some of the other user API methods havesendSetPasswordEmail
, but this isn't available on the import method.Is there a setting I can change to allow import with no password? Or must I use another method? Or is this a bug? I don't think any of the other migration tutorials we've written haven't had password hashes available.
Thanks.
-
@fusionauth-qhj5e It looks like according to the documentation, the password is required.
If you scroll down you will see:
Found this thread that may be helpful for you as well.
FYI, it looks like there may be a misunderstanding with the username and email. From the docs -> You must provide either the email or the username field for each User.
-
@mark-robustelli Oh ok, I'll set the password to a UUID then and set the user to change password on login. I'll try on Monday. Thanks for the forum link.
-