I used the User Import/Export extension to export the tenant’s users. Then I asked Auth0 support for the password hashes.
In order to test the import, I proceeded to delete the user from the tenant and re-import the user using the same extension mentioned above.
The import is successful and I can see the user in the users page. But when I try to log in as the user, I get the ‘Wrong Email or Password’ error.
Could you pls advise? Could this be due to the fact I deleted the user from the tenant so the password hash is no longer valid?
I’m doing this exercise to test our backup and restore strategy in case we were to lose all users from the tenant.
PS: this is using the username-password-authentication connection.
I would expect this to work correctly. Can you please share how you are importing the hash with an example?
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
Apologies for the delay in response. I used the User Import / Export extension to import. Pls see below:
Also, I followed the documentation here User Import / Export Extension
I just wanted to highlight the steps I took:
- Using the above extension, I exported the tenant’s users
- I then asked Auth0 Support for the password hashes
- Using the User management page, I proceeded to delete the user from the tenant (so I can replicate a scenario where our users have been deleted).
- I re-imported the user using the same extension mentioned above. After import, I can see the user in the users page.
I’m wondering if this could be due to the fact I deleted the user from the tenant so the password hash is no longer valid?
Purpose of doing this: test our backup and restore strategy in case we were to lose all users from the tenant.
Thanks for the follow up.
Did you import the user’s hash? If so, can you please provide an example of the JSON import of the hash (exclude any sensitive data)?
Sure, it looks something like this:
I only tested it with a single user. Will it help if I email Auth0 support for a new password hash list so I can try it again? Wondering if there might be logs that can be checked based on the import job id?
That import looks good. I would expect everything you’ve described to work as expected.
Can you confirm you are trying the same password for the hash you’ve exported?
Yes, it was the same password. One thing I want to highlight is I deleted the user from the User Management page before re-importing. Does that matter?
That sounds correct to me. You would want to delete the user to simulate a data loss, right?
It shouldn’t have an impact on whether or not you can import the password hash.
That’s true, yes. Will it help if I try this again? Would you have logs at your end to see what could have gone wrong?
I can’t see the logs, but if you provide some test data I can try it on my end. Mainly a password and matching hash. (**Please use a test user for this and do not share a real password)