I have two questions on user export and import
This is one of user schema
{
"created_at": "2023-03-13T05:22:17.673Z",
"email": "any@testmail.com",
"email_verified": false,
"identities": [
{
"connection": "sampleDB",
"user_id": "123",
"provider": "auth0",
"isSocial": false
}
],
"name": "any@testmail.com",
"nickname": "any",
"picture": "xyz",
"user_id": "auth0|123",
"blocked_for": [],
"guardian_authenticators": [],
"user_metadata": {
"userMeta": "data"
},
"app_metadata": {
"mustChangePwd": true
}
}
This is the curl to export
curl --location 'https: //my-sandbox-2.my-dev.auth0.com/api/v2/jobs/users-exports' \
--header 'authorization: Bearer xyz' \
--header 'content-type: application/json' \
--data '{
"connection_id": "con_abc",
"format": "json"
}'
But when I export, it doesn’t give id connections, user meta data and app metadata.Is this expected? Please see the curl above and tell me do I need to explicitly specify each field?
2/ Got 200 ok with job status for user import /api/v2/jobs/users-imports but checking job status I can see it failed to understand more what is error ran this api
curl --location 'https://my-sandbox-2.my-dev.auth0.com/api/v2/jobs/job_abc
–header ‘authorization: Bearer xyz’
but I am getting 204 ok, so I cannot understand really why it failed?
FYI, I am imported same file that it exported earlier,
This is the imported file
{"user_id": "auth0|123","email":"any@testmail.com","name":"any@testmail.com","nickname":"any","created_at":"2023-03-13T05:22:17.673Z","updated_at":"2023-03-13T10:03:09.047Z","email_verified":false}
Any help on what might be wrong with import is greatly appreciated, thanks