Guides & tutorials

How to create an Auth0 M2M application to use the Management API

Import this tutorial scenario in your workspace
Table of contents

This tutorial will cover how to create an Auth0 Machine-to-Machine (M2M) application to consume the Management API in server-side flows. Using this API is useful if you need to create flows that:

  • Create users programmatically.
  • Update users information.
  • Read users information.

After creating this application, you will be able to connect your Auth0 account to Arengu using the following settings:

  1. Client ID
  2. Client secret
  3. Tenant domain (eg.

1. Create the M2M application

Go to your Auth0 dashboard under Application > Applications and create a new application and select the "Machine to Machine Applications" option:

In the next step, select the Auth0 Management API:

Then, you will be prompted to choose the scopes for this application:

Mark the necessary scopes depending on the actions you expect to use:

  • Create user: create:users.
  • Update user: update:users and update:users_app_metadata.
  • Get user: read:users and read:user_idp_tokens.
If you modify the scopes later, you will need to reconnect your Arengu connection to generate a new token with the new permissions.

2. Getting your Auth0 connection ready

Once the application is created, go to the Settings tab:

If you have configured a custom domain, you will need to use your Auth0 tenant domain (eg.

Here you will find all the necessary information to configure your Auth0 connection in Arengu:

Arengu will already handle all the logic to generate the production access tokens and perform the actions you add to your flows.

You might like to read

See more tutorials

Getting started with Arengu

Arengu allows you to build all your user flows connected to your current stack, and avoids coding all the UI, complex integrations, validations or logic from scratch. Try it for free and start building faster and scaling your application needs as they grow.