Use Case: Bulk Exporting Auth0 Users Using Filters

Overview

This article explains if it is possible to export user data from Auth0 using the User Import / Export Extension based on specific filters.

Applies To

  • Auth0 Dashboard
  • User Import / Export Extension

Cause

The Auth0 Management API does not directly support filtering users by specific fields during export. Therefore, exporting users with particular attributes, such as email_verified set to false, requires exporting all users and then filtering the data externally.

Solution

To bulk export users from Auth0:

  1. Navigate to Auth0 Dashboard > Extensions > User Import/Export.
  2. Install the User Import/Export Extension if it is not already installed.
  3. Open the User Import/Export Extension.
  4. Go to the Export Tab.
  5. Enter the user fields to export in the provided input, such as user_id, email, identities[0].connection, and email_verified.
  6. Select Download as JSON to export the user data.

After exporting, use a script or tool to filter the downloaded JSON file based on the desired criteria (e.g., email_verified: false). Including the identities[0].connection field in the export is recommended to differentiate users who may share the same email across different connections.

More information about the User Import/Export Extension is available at User Import / Export Extension.