npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

auth0-tenant-to-tenant-user-migration-tool

v2.0.0

Published

Auth0 tenant to tenant user migration tool

Readme

🚀 Auth0 Tenant-to-Tenant User Migration Tool

A Node.js CLI tool to help you migrate users from one Auth0 tenant to another securely and interactively. You will also able to migrate your roles and apply them to users in the new tenant. The assignment follows a fail proof approach where if a role doesn't exist it will be created, if it does it will be reused.


✨ Features

  • Migrate users between Auth0 tenants
  • Migrate user roles between Auth0 tenants
  • Interactive CLI prompts using Inquirer

⚙️ Prerequisites

To use this tool, you must create a Machine-to-Machine Application in Auth0 for both the source and destination tenants. These applications must be granted specific permissions to interact with the Auth0 Management API.

✅ Steps to Set Up

  1. Log in to your Auth0 Dashboard
    Go to https://manage.auth0.com and select the appropriate tenant.

  2. Create a Machine-to-Machine Application

    • Navigate to Applications → Applications.
    • Click "Create Application".
    • Name it (e.g., Migration Tool App).
    • Choose "Machine to Machine Applications".
    • Click "Create".
  3. Authorize the Application to Use the Management API

    • After creating the app, you'll be prompted to authorize it to use the Auth0 Management API.
    • Click "Authorize".

Grant the Required Permissions (Scopes)

To enable secure and complete migration of users and roles between tenants, ensure your Machine-to-Machine Applications have the following Auth0 Management API scopes:

| Scope | Source Tenant | Destination Tenant | |-----------------------------|---------------|--------------------| | read:connections | ✅ | ✅ | | read:users | ✅ | ✅ | | update:users | ❌ | ✅ | | create:users | ❌ | ✅ | | delete:users_app_metadata | ❌ | ✅ | | create:users_app_metadata | ❌ | ✅ | | update:users_app_metadata | ❌ | ✅ | | read:roles | ✅ | ✅ | | create:roles | ❌ | ✅ | | read:role_members | ✅ | ❌ | | assign:roles | ❌ | ✅ |

⚠️ Note: These scopes must be granted when authorizing the Machine-to-Machine Application to access the Auth0 Management API for each tenant.


📥 Installation

Install the CLI globally using npm:

npm install -g auth0-tenant-to-tenant-user-migration-tool

🛠️ Usage

To start the migration process, simply run:

auth0-migration migrate-users // For user migration
auth0-migration migrate-user-roles // For user roles migration

The CLI will prompt you to enter:

  • Source tenant domain, client ID, and client secret
  • Target tenant domain, client ID, and client secret

All inputs are securely handled using Inquirer.


📃 License

This project is licensed under the MIT License.