Bulk Import From WordPress is not Working

Im trying to import all my users to Auth0, but the problem is that is saying

[{"user":{"email":"tin@***.com","email_verified":true,"user_metadata":{"roles":["administrator"]},"custom_password_hash":{"algorithm":"md5","hash":{"value":"*****","encoding":"base64","digest":"md5"}}},"errors":[{"code":"ONE_OF_MISSING","message":"","path":"custom_password_hash"}]}]

here is the json file:

[
  {
    "email": "tin@****.com",
    "email_verified": true,
    "user_metadata": {
      "roles": [
        "administrator"
      ]
    },
    "custom_password_hash": {
      "algorithm": "md5",
      "hash": {
        "value": "$P$BjbR0ufEEqXmXfJIqattrQdbHTd0Yl1",
        "encoding":"base64"
      }
    }
  }
]

Anyone has encounter this problem in the past?

Thanks

Hi @tin ,

Welcome to the Auth0 Community!

I noticed that the role has a square bracket around it. Could you please remove it and try again? With the below testing scripts, I imported the users successfully.

[
{
    "email": "user1@xxx.com",
    "email_verified": true,
    "user_metadata": {
      "roles": 
        "administrator"
    },
    "custom_password_hash": {
        "algorithm": "md5",
        "hash": {
            "value": "cGFzc3dvcmQ=5f4dcc3b5aa765d61d8327deb882cf99",
            "encoding": "base64"
        }
    }
},
{
    "email": "user2@xxx.com",
    "email_verified": true,
    "user_metadata": {
      "roles": 
        "user"
    },
    "custom_password_hash": {
        "algorithm": "md5",
        "hash": {
            "value": "cGFzc3dvcmQ=5f4dcc3b5aa765d61d8327deb882cf99",
            "encoding": "base64"
        }
    }
}
]

Hope this helps!

Still nothing!
I think its regarding the way that is the MD5

Could you please DM me your tenant name, and the password? Thanks.

I found that WordPress is doing something extra:
https://ehikioya.com/wordpress-password-hash-generator/
so, for now Im not sure what/how do I need to the JSON file with the users.

still looking for the answer.

Hi @tin ,

I checked our internal conversation and found that we don’t support WordPress hashing at per the current design.
Please feel free to communicate directly to our product team using our feedback page and click on the Vote button. Thank you!

Well, somehow you guys should support it cause you have a plugin for WordPress in order to make the migration: Login by Auth0 – WordPress plugin | WordPress.org

so, maybe you guys can guide me to make this happen in a bulk import.

Regards.

I agree with you. As I said earlier, please pass this feedback to our product team on the feedback page.

I checked with our internal team. Unfortunately, there is no workaround unless using a different hash, such as the md5 algorithm in my testing scripts.

@lihua.zhang was this ever developed?

Cheers

@arnaldo.capo ,

This feature is not available yet. Please raise this feature request with our product team via the feedback page. Thanks!