FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    How to bulk import users with no password hash?

    Scheduled Pinned Locked Moved Solved
    Q&A
    frontegg ritza import migration
    2
    3
    1.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      fusionauth.qhj5e
      last edited by

      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 me You must specify the [user.password] property for each user.

      I've set passwordChangeRequired to true. I see some of the other user API methods have sendSetPasswordEmail, 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.

      mark.robustelliM 1 Reply Last reply Reply Quote 0
      • mark.robustelliM
        mark.robustelli @fusionauth.qhj5e
        last edited by mark.robustelli

        @fusionauth-qhj5e It looks like according to the documentation, the password is required.

        If you scroll down you will see:

        Screenshot 2024-03-15 at 7.50.32 AM.png

        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.

        F 1 Reply Last reply Reply Quote 0
        • F
          fusionauth.qhj5e @mark.robustelli
          last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • F fusionauth.qhj5e has marked this topic as solved on
          • First post
            Last post