User Import Fails with Error: "Error in passwordHash Property - String does not Match Pattern"
Sep 10, 2025
Overview
We ran a bulk import of user data using Create import users job(/api/v2/jobs/users-imports). We have completed an Import Job with success, but some of the data has errors. One error we are seeing is "Error in passwordHash property - String does not match pattern ^\\$2[ab]?\\$10+\\$[./A-Za-z0-9]{53}$". How can we resolve this error.
Applies To
- Password Hash
- Format Property
- Pattern Import
Cause
Solution
"password_hash": {
"type": "string",
"description": "Hashed password for the user. Passwords should be hashed using bcrypt $2a$ or $2b$ and have 10 saltRounds."
}