Custom Database Action Script Did Not Run

Overview

During a testing phase, it was noticed that the Login and Get User scripts did not run.

The script was debugged using Real-time Webtask Logs Extension and put some console.log()'s in the script, but no output was seen.

The custom database had the “Import Users to Auth0” option toggled on.

Applies To

  • Login and Get User scripts
  • Custom Database
  • Action

Solution

Login and Get User scripts will not run once the user is imported. The user becomes a normal database user after being imported.

NOTE: Resetting the password before the user logs in for the first time will trigger a Get User script, and the user will be imported silently (he/she will not show up in the user search result until he/she logs in).

Related References