# Getting error while bulk user import / user import even after providing correct values

**URL:** <https://community.auth0.com/t/getting-error-while-bulk-user-import-user-import-even-after-providing-correct-values/174522>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [January 27, 2025, 10:16am UTC](https://community.auth0.com/t/getting-error-while-bulk-user-import-user-import-even-after-providing-correct-values/174522 "2025-01-27T10:16:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kumar-shikhar\_ukg](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kumar-shikhar_ukg/32/71904_2.png) [@kumar-shikhar\_ukg](https://community.auth0.com/u/kumar-shikhar_ukg)\
**Post date:** [January 27, 2025, 10:16am UTC](https://community.auth0.com/t/getting-error-while-bulk-user-import-user-import-even-after-providing-correct-values/174522/1 "2025-01-27T10:16:32Z")

</div>

Ready to post? 🔍 First, try searching for your answer.  
{  
“user”: {  
“email”: “[jane.smith2@example.com](mailto:jane.smith2@example.com)”,  
“email\_verified”: true,  
“user\_id”: “custom|67891”,  
“custom\_password\_hash”: {  
“algorithm”: “bcrypt”,  
“hash”: {  
“value”: “_**",  
“encoding”: “base64”  
},  
“salt”: {  
“value”: "**_”,  
“position”: “prefix”  
}  
}  
},  
“errors”: [  
{  
“code”: “ONE\_OF\_MISSING”,  
“message”: “”,  
“path”: “custom\_password\_hash”  
}  
]

I am getting this error while user import.

my values are as :

**Salt as base64:** xKuLWAeuFfCXUQlNbLS3yRAtyNfgi+Q3pPmTBFKlqpM=

**Hash as base64:** SkRKaEpERXdKSEV5V21jeE4yMVViR3BoWmxoUmJqRnlZbHBzY25WcE5rRnFhazlDUzBkMmJHdFpkWFJUT0dWT2MzUkVjMUZ6V1VGdVRFcDU=

---

<div class="post-metadata">

**Author:** ![sumansaurav](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sumansaurav/32/70627_2.png) [@sumansaurav](https://community.auth0.com/u/sumansaurav)\
**Post date:** [January 27, 2025, 10:45pm UTC](https://community.auth0.com/t/getting-error-while-bulk-user-import-user-import-even-after-providing-correct-values/174522/3 "2025-01-27T22:45:39Z")

</div>

Hi @kumar-shikhar_ukg ,

Could you please verify you bcrypt value follow below specification?

> **[Bulk User Import Database Schema and Examples](https://auth0.com/docs/manage-users/user-migration/bulk-user-import-database-schema-and-examples#bcrypt)**
>
> Learn how to perform bulk user imports with the Management API.

Example:

```auto
{
        "email": "velma@contoso.com",
        "email_verified": false,
        "custom_password_hash": {
            "algorithm": "bcrypt",
            "hash": {
                "value": "$2b$10$C9hB01.YxRSTcn/ZOOo4j.TW7xCKKFKBSF.C7E0xiUwumqIDqWUXG"
            }
        }
    },

```

You probably don’t need to pass salt value explicitly. Please check the encoding as well.

---

<div class="post-metadata">

**Author:** ![kumar-shikhar\_ukg](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kumar-shikhar_ukg/32/71904_2.png) [@kumar-shikhar\_ukg](https://community.auth0.com/u/kumar-shikhar_ukg)\
**Post date:** [January 28, 2025, 4:07am UTC](https://community.auth0.com/t/getting-error-while-bulk-user-import-user-import-even-after-providing-correct-values/174522/4 "2025-01-28T04:07:13Z")

</div>

Yes, with another template withouth salt, user gets imported.  
Another question on top of this… does auth0 support becypt in custompassword hash tree with hash and salt tags ??

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 11, 2025, 4:07am UTC](https://community.auth0.com/t/getting-error-while-bulk-user-import-user-import-even-after-providing-correct-values/174522/5 "2025-02-11T04:07:25Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
