How to Disconnect an External Database from a Custom Database Connection when Migration Has Finished

Overview

Once all necessary users have migrated from a legacy database into Auth0, the external database can be “disconnected” from Auth0.

​​​​​​​There is only one way to do that without causing issues.

Applies To

  • Legacy Database
  • Custom Database Connection
  • External Database

Solution

The only way to “disconnect” a legacy database from Auth0 without causing issues is to set the Custom DB Action Scripts into “no-op” mode.

This means changing the script to return “callback(null, null)”. Please check this document for more details.