Importing Error "Forbidden attribute in appUser: "

Problem statement

When importing a user, the error message below is seen with the error code “NOT_PASSED”:

Forbidden attribute in appUser:

Troubleshooting

Check the import JSON for the affected user(s) and compare it to the schema.

Cause

This can be thrown due to failing to adhere to the schema. Please see Bulk User Import Database Schema and Examples for more details.

Solution

Check the imported JSON adheres to the schema presented in this link: Bulk User Import Database Schema and Examples.

Example: Using both password_hash and custom_password_hash for the same user can cause this error. Only one of these fields can be present at a time. They are mutually exclusive. The former is only for password hashed using bcrypt with $2a$ or $2b$ and has 10 saltRounds.