Bulk User Import "Missing required property: email" Error

Problem Statement

We could not update users via the bulk user import endpoint, when providing only the user_id in the JSON file.

[
    {
        "user": {
            "user_id": "auth0|62cb3025b33bfd6c09dddddd",
            "mfa_factors": [
                {
                    "phone": {
                        "value": "+123456789"
                    }
                }
            ]
        },
        "errors": [
            {
                "code": "OBJECT_MISSING_REQUIRED_PROPERTY",
                "message": "Missing required property: email"
            }
        ]
    }
]

Solution

The EMAIL property is required when upsert=true. So please make sure to include the email attribute in the JSON import file.