Disabling the "Use my own database" Toggle in Auth0 After Migration

Overview

This article clarifies whether it is possible to disable the Use my own database toggle after completing a user migration from an external store. It addresses the system limitations encountered when attempting to disconnect a custom database connection and provides the recommended path for decommissioning the external store while maintaining the current subscription plan.

Applies To
  • Custom Database
  • User Migration
  • Import Users to Auth0
Solution

The Use my own database toggle cannot be disabled in the dashboard if the database connection already contains users. To fully disconnect the external store and avoid unnecessary feature charges, perform the following steps:

  1. Navigate to the Database Connection settings in the dashboard.
  2. Ensure both the Use my own database and Import Users to Auth0 toggles remain enabled.
  3. Modify the Login and Get User action scripts to return a no-op implementation:
    function login(email, password, callback) {
        callback(null, null);
    }
  4. Decommission the external user store.

 

To completely remove the custom database dependency while remaining on an Essentials plan, the existing records must be migrated to a new standard database connection.

This process requires the following:

  • Requesting a password hash export via a support ticket: How to Use the Password Hashes Export from Auth0.
    • NOTE: The ability to export password hashes depends on the specific subscription plan and is not available on all tiers.
  • Importing the users into a new database connection.
    • NOTE: This process generates new user identifiers (IDs) for every record to prevent duplicate conflicts.
  • Updating applications to use the new regular database connection.
  • Deleting the original custom database connection once the transition is verified.

Recommended content

No recommended content found...