Bulk Update or Delete Users

Last Modified: Aug 28, 2024

Overview

This article describes how to bulk update information about the users or delete them from Auth0.

Cause

Dashboard does not allow admins to bulk update or delete users

Solution

Using the Management API to programmatically update or delete users individually, considering the Rate Limits.

Utilize the following guidelines or the video below.

  1. Create an M2M application (API) and link the Management API with client credentials.
  2. Create a function that receives an array of user IDs (this can be retrieved with a user export*).
  3. Request the Management API for update users (PATCH /api/v2/users/{id}).
  4. Manage timeouts or retry when rate limits are exceeded.

NOTE: Designing is out of the scope of Support.

Related References