Cannot Save Database Script - Error "Additional properties not allowed: challenge_type' on property email"

Last Updated: Aug 9, 2024

Overview

When trying to save a database action script, the following message is received:

Error!Payload validation error: ‘Additional properties not allowed: challenge_type’ on property email (Configuration for the email attribute for users).

Applies To

  • Custom Database
  • Script

Cause

The Auth0 engineering team is aware of this issue are working on a fix. However, there is no fixed ETA for this issue.

Solution

One solution is to fix the options object in the connection and send a PATCH request to the connection without the specified option challenge_type.

  1. Use the Management API to retrieve the connection options object. More details on how to do so can be found here.
  2. Then, with the options object, delete challenge_type from the object.
  3. Using the endpoint mentioned here, patch the connection and send the options object in the body of the request.

Related References