> ## Documentation Index
> Fetch the complete documentation index at: https://docs-staging-feat-docs-5551-enterprise-connect.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Auth0

> Apprenez à configurer vos actions de flux Auth0 pour récupérer et mettre à jour les informations de profil des utilisateurs ou créer de nouveaux utilisateurs.

Cette liste d’Auth0 Actions vous permet d’obtenir, de créer et de mettre à jour des utilisateurs.

## Configurer la connexion à votre coffre-fort

Pour configurer une connexion au coffre-fort pour vos Auth0 Actions, vous devrez [créer une application de communication entre machines](/docs/fr-ca/get-started/auth0-overview/create-applications/machine-to-machine-apps)  et utiliser **le domaine du locataire, l’ID et le secret client** :

<Frame>
  <img src="https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/PZ_xn0Ama7YPIjab/docs/images/fr-ca/cdy7uua7fh8z/1IPtH5hD6QTRXsySyo2Ovr/3562828624e2fd4f308b6eb3b5042f34/auth0-vault-connection.png?fit=max&auto=format&n=PZ_xn0Ama7YPIjab&q=85&s=2e24411ea8c9cfdadfccf364918fd72a" alt="" width="1404" height="851" data-path="docs/images/fr-ca/cdy7uua7fh8z/1IPtH5hD6QTRXsySyo2Ovr/3562828624e2fd4f308b6eb3b5042f34/auth0-vault-connection.png" />
</Frame>

<Warning>
  N’oubliez pas d’autoriser votre application de communication entre machines à accéder au Management API et de sélectionner les bonnes permissions (par exemple, `update:users_app_metadata`).
</Warning>

## Créer un utilisateur

Créer un utilisateur.

<Frame>
  <img src="https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/KJau0972Qp0TIXIZ/docs/images/fr-ca/cdy7uua7fh8z/6MQIKf2IpTtI2g7d5Pwn7u/222ec746cf9c0c1003d18ba4c0aa451e/create_user.png?fit=max&auto=format&n=KJau0972Qp0TIXIZ&q=85&s=509ad6010567cc661682f47b7fb8510e" alt="" width="1392" height="1094" data-path="docs/images/fr-ca/cdy7uua7fh8z/6MQIKf2IpTtI2g7d5Pwn7u/222ec746cf9c0c1003d18ba4c0aa451e/create_user.png" />
</Frame>

### Paramètres d’entrée

| Paramètre | Description                                                                                                                                                                                    |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Corps     | La charge utile des propriétés utilisateur Auth0 à ajouter. Pour en savoir plus, lisez la documentation API [Créer un utilisateur](https://auth0.com/docs/api/management/v2/users/post-users). |

### Paramètres de sortie

Vous trouverez les réponses attendues et les codes d’état dans la documentation de l’API [Créer un utilisateur](https://auth0.com/docs/api/management/v2/users/post-users#response-messages).

## Obtenir l’utilisateur

Récupérer les détails de l’utilisateur.

<Frame>
  <img src="https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/bScGpuW2J8cY_BQ0/docs/images/fr-ca/cdy7uua7fh8z/3GoNZsXOvMTYRtMQNj00mm/6e92d94cee7b165479c688358a5df242/Screenshot_2024-11-18_at_16.31.49.png?fit=max&auto=format&n=bScGpuW2J8cY_BQ0&q=85&s=aab654ad46148cf968658aa74badfe6e" alt="" width="1404" height="650" data-path="docs/images/fr-ca/cdy7uua7fh8z/3GoNZsXOvMTYRtMQNj00mm/6e92d94cee7b165479c688358a5df242/Screenshot_2024-11-18_at_16.31.49.png" />
</Frame>

### Paramètres d’entrée

| Paramètre      | Description                                                                                                           |
| -------------- | --------------------------------------------------------------------------------------------------------------------- |
| ID utilisateur | ID de l’utilisateur à récupérer. Pour en savoir plus, consultez la documentation de l’API [Obtenir un utilisateur](). |

### Paramètres de sortie

Vous trouverez la réponse attendue et les codes d’état dans la documentation de l’API [Récupérer un utilisateur](https://auth0.com/docs/api/management/v2/users/get-users-by-id#response-messages).

## Mettre à jour l’utilisateur

Mettre à jour un utilisateur.

<Frame>
  <img src="https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/xKRNX1jVnh1p5iVY/docs/images/fr-ca/cdy7uua7fh8z/3tymSpaeod6EksWRJp1sge/1122b244d756d754fe41baac209a132b/Screenshot_2024-11-18_at_16.49.56.png?fit=max&auto=format&n=xKRNX1jVnh1p5iVY&q=85&s=9180d4276816c105827dde7e0bcc3ee9" alt="" width="1404" height="1213" data-path="docs/images/fr-ca/cdy7uua7fh8z/3tymSpaeod6EksWRJp1sge/1122b244d756d754fe41baac209a132b/Screenshot_2024-11-18_at_16.49.56.png" />
</Frame>

### Paramètres d’entrée

| Paramètre           | Description                                                                                                                                                                                                                       |
| ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ID de l’utilisateur | ID de l’utilisateur à mettre à jour.                                                                                                                                                                                              |
| Corps               | La charge utile des propriétés de l’utilisateur Auth0 à mettre à jour. Pour en savoir plus, consultez la documentation de l’API [Mettre à jour un utilisateur](https://auth0.com/docs/api/management/v2/users/patch-users-by-id). |

### Paramètres de sortie

Vous trouverez la réponse attendue et les codes d’état dans la documentation de l’API [Mettre à jour un utilisateur](https://auth0.com/docs/api/management/v2/users/patch-users-by-id#response-messages).

## Demande d’API personnalisée

Envoyer une demande d’API personnalisée aux points de terminaison de l’API Auth0.

<Frame>
  <img src="https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/aOVgxwLCelP5iRYE/docs/images/fr-ca/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?fit=max&auto=format&n=aOVgxwLCelP5iRYE&q=85&s=d6b9c9917df778bba4cb6faf497e731f" alt="Dashboard > Customize > Flows > Integrations > Auth0" data-og-width="1211" width="1211" data-og-height="862" height="862" data-path="docs/images/fr-ca/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/aOVgxwLCelP5iRYE/docs/images/fr-ca/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?w=280&fit=max&auto=format&n=aOVgxwLCelP5iRYE&q=85&s=f3bdeb8f6936d2851b7f429b152041c8 280w, https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/aOVgxwLCelP5iRYE/docs/images/fr-ca/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?w=560&fit=max&auto=format&n=aOVgxwLCelP5iRYE&q=85&s=75ba471fda746d4108ac75c639164af0 560w, https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/aOVgxwLCelP5iRYE/docs/images/fr-ca/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?w=840&fit=max&auto=format&n=aOVgxwLCelP5iRYE&q=85&s=8f808d5121e64ad592bdb94de5ea6680 840w, https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/aOVgxwLCelP5iRYE/docs/images/fr-ca/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?w=1100&fit=max&auto=format&n=aOVgxwLCelP5iRYE&q=85&s=97e17b405b3f59e08f84079052d85602 1100w, https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/aOVgxwLCelP5iRYE/docs/images/fr-ca/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?w=1650&fit=max&auto=format&n=aOVgxwLCelP5iRYE&q=85&s=633b671477fc52fc5dbf2f0a52bf5b3d 1650w, https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/aOVgxwLCelP5iRYE/docs/images/fr-ca/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?w=2500&fit=max&auto=format&n=aOVgxwLCelP5iRYE&q=85&s=d0bfcc835d5d629c476ad77e6266839e 2500w" />
</Frame>

### Paramètres d’entrée

| Parameter  | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Path       | The API endpoint absolute pathname.<br />( Example: `/api/v2/organizations` )<br />**Note:** Some endpoints, for example: [ Get a user ](https://auth0.com/docs/api/management/v2/users/get-users-by-id), require URI encoded parameters when not using alphanumeric characters, such as: `-`, `.`, `_`, or `~`, [ characters ](https://datatracker.ietf.org/doc/html/rfc3986#section-2.3)).<br />To do this, you can use the encodeURIComponent function:<br />`{{ functions.encodeURIComponent(context.user.user_id) }} ` |
| Method     | Available HTTP methods include: <ul> <li>`GET`</li> <li>`POST`</li> <li>`PUT`</li> <li>`PATCH`</li> <li>`DELETE`</li> </ul>                                                                                                                                                                                                                                                                                                                                                                                                 |
| Body       | The body of the request.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Headers    | The headers of the request.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| URL Params | The URL parameters. These parameters are automatically URL-encoded.                                                                                                                                                                                                                                                                                                                                                                                                                                                         |

### Paramètres de sortie

Vous trouverez les réponses attendues et les codes d’état dans la documentation de <Tooltip href="/docs/fr-ca/glossary?term=management-api" tip="Management API
Un produit permettant aux clients d’effectuer des tâches administratives." cta="Voir le glossaire">Management API</Tooltip> Auth0.
