> ## Documentation Index
> Fetch the complete documentation index at: https://docs-staging-docs-add-auth0-cli-management-api-examples.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Learn how to configure your Auth0 Vault Connections to authorize requests against the Management API.

# Auth0 Vault Connection

## Get access to Auth0 Management API

[Create a Machine-to-Machine (M2M) Application](/docs/get-started/auth0-overview/create-applications/machine-to-machine-apps) authorized for Auth0 Management API.

<Warning>
  Remember to authorize your M2M Application to access the Management API and select the right scopes following the Least Privilege Principle:

  * For Get User: `read:users`
  * For Create User: `create:users`
  * For Update User: `update:users`
</Warning>

<Callout icon="file-lines" color="#0EA5E9" iconType="regular">
  No need for Auth0 Management API authorization to send notifications through the configured providers at your Auth0 Tenant.
</Callout>

## Configure your Vault Connection

To configure an Auth0 Vault Connection for your Auth0 Flow Actions, set the required parameters based on the previous created M2M Application.

<Frame>
  <img src="https://mintcdn.com/docs-staging-docs-add-auth0-cli-management-api-examples/9uxJKmcIneYMrYYY/docs/images/customize/forms/vaults/auth0-vault-connection.png?fit=max&auto=format&n=9uxJKmcIneYMrYYY&q=85&s=3300c8592b3e7f5d678c4f039854c05c" alt="Dashboard > Actions > Forms > Vault > Auth0" data-og-width="798" width="798" data-og-height="707" height="707" data-path="docs/images/customize/forms/vaults/auth0-vault-connection.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-staging-docs-add-auth0-cli-management-api-examples/9uxJKmcIneYMrYYY/docs/images/customize/forms/vaults/auth0-vault-connection.png?w=280&fit=max&auto=format&n=9uxJKmcIneYMrYYY&q=85&s=e018ca51739691617e2ad0d0970c7d76 280w, https://mintcdn.com/docs-staging-docs-add-auth0-cli-management-api-examples/9uxJKmcIneYMrYYY/docs/images/customize/forms/vaults/auth0-vault-connection.png?w=560&fit=max&auto=format&n=9uxJKmcIneYMrYYY&q=85&s=f05008faceeb6322ff6bedbb94b3d26d 560w, https://mintcdn.com/docs-staging-docs-add-auth0-cli-management-api-examples/9uxJKmcIneYMrYYY/docs/images/customize/forms/vaults/auth0-vault-connection.png?w=840&fit=max&auto=format&n=9uxJKmcIneYMrYYY&q=85&s=627033451716760706716ce2801b07c3 840w, https://mintcdn.com/docs-staging-docs-add-auth0-cli-management-api-examples/9uxJKmcIneYMrYYY/docs/images/customize/forms/vaults/auth0-vault-connection.png?w=1100&fit=max&auto=format&n=9uxJKmcIneYMrYYY&q=85&s=6cbcfdb17a2e0487d40b52ea77eb1e66 1100w, https://mintcdn.com/docs-staging-docs-add-auth0-cli-management-api-examples/9uxJKmcIneYMrYYY/docs/images/customize/forms/vaults/auth0-vault-connection.png?w=1650&fit=max&auto=format&n=9uxJKmcIneYMrYYY&q=85&s=953563362ea3727d2bf40b2b86347adf 1650w, https://mintcdn.com/docs-staging-docs-add-auth0-cli-management-api-examples/9uxJKmcIneYMrYYY/docs/images/customize/forms/vaults/auth0-vault-connection.png?w=2500&fit=max&auto=format&n=9uxJKmcIneYMrYYY&q=85&s=679f8cfd420c2caff224e2df8b517ffe 2500w" />
</Frame>

#### Input settings

| Parameter           | Description                                                                |
| ------------------- | -------------------------------------------------------------------------- |
| Tenant Domain       | Tenant domain of your M2M Application.                                     |
| Client ID           | Client ID of your M2M Application authorized for Auth0 Management API.     |
| Client Secret       | Client Secret of your M2M Application authorized for Auth0 Management API. |
| Audience (Optional) | Auth0 Management API Audience.                                             |

<Callout icon="file-lines" color="#0EA5E9" iconType="regular">
  By default, the Audience will be based on the Tenant Domain.
</Callout>
