> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev-docs-ai-docs-migration-poc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Auth0

> Auth0フローのアクションを構成して、ユーザープロファイル情報の取得や更新と、新しいユーザーの作成を行う方法について説明します。

このリストにあるAuth0アクションは、ユーザーの取得、作成、更新を行えるようにします。

## Vault接続を構成する

Auth0のアクションにVault接続を構成するには、[マシンツーマシン](/docs/ja-jp/get-started/auth0-overview/create-applications/machine-to-machine-apps)アプリケーションを作成して、 **テナントドメイン、クライアントIDおよびクライアントシークレット** を使用する必要があります：

<Frame>
  <img src="https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/lOBvBrJbtG332yHQ/docs/images/ja-jp/cdy7uua7fh8z/1IPtH5hD6QTRXsySyo2Ovr/3562828624e2fd4f308b6eb3b5042f34/auth0-vault-connection.png?fit=max&auto=format&n=lOBvBrJbtG332yHQ&q=85&s=33c7a515f87a00b51546db8fa750f929" alt="" width="1404" height="851" data-path="docs/images/ja-jp/cdy7uua7fh8z/1IPtH5hD6QTRXsySyo2Ovr/3562828624e2fd4f308b6eb3b5042f34/auth0-vault-connection.png" />
</Frame>

<Warning>
  マシンツーマシンアプリケーションには必ずManagement APIへのアクセスを認可して、正しいスコープ（`update:users_app_metadata`など）を選択してください。
</Warning>

## ユーザーの作成

ユーザーを作成します。

<Frame>
  <img src="https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/76Yi3c176GYlp9_Q/docs/images/ja-jp/cdy7uua7fh8z/6MQIKf2IpTtI2g7d5Pwn7u/222ec746cf9c0c1003d18ba4c0aa451e/create_user.png?fit=max&auto=format&n=76Yi3c176GYlp9_Q&q=85&s=48197f79f8ee4e764fab8a3b50ca2c5e" alt="" width="1392" height="1094" data-path="docs/images/ja-jp/cdy7uua7fh8z/6MQIKf2IpTtI2g7d5Pwn7u/222ec746cf9c0c1003d18ba4c0aa451e/create_user.png" />
</Frame>

### 入力設定

| パラメーター | 説明                                                                                                                              |
| ------ | ------------------------------------------------------------------------------------------------------------------------------- |
| ボディー   | 追加するAuth0ユーザープロパティのペイロードです。詳細については、[ユーザー作成](https://auth0.com/docs/ja-jp/api/management/v2/users/post-users)APIのドキュメントをお読みください。 |

### 出力設定

期待される応答とステータスコードは、APIドキュメントの「[ユーザーの作成](https://auth0.com/docs/api/management/v2/users/post-users#response-messages)」に記載されています。

## ユーザーの取得

ユーザーの詳細情報を取得します。

<Frame>
  <img src="https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/gOjxgRCfcCXHpbhL/docs/images/ja-jp/cdy7uua7fh8z/3GoNZsXOvMTYRtMQNj00mm/6e92d94cee7b165479c688358a5df242/Screenshot_2024-11-18_at_16.31.49.png?fit=max&auto=format&n=gOjxgRCfcCXHpbhL&q=85&s=a56fc9d123a4a47a458d9748a5266472" alt="" width="1404" height="650" data-path="docs/images/ja-jp/cdy7uua7fh8z/3GoNZsXOvMTYRtMQNj00mm/6e92d94cee7b165479c688358a5df242/Screenshot_2024-11-18_at_16.31.49.png" />
</Frame>

### 入力設定

| パラメーター | 説明                                                  |
| ------ | --------------------------------------------------- |
| ユーザーID | 取得するユーザーのIDです。詳細については、[ユーザー取得]()APIのドキュメントをお読みください。 |

### 出力設定

期待される応答とステータスコードは、APIドキュメントの「[ユーザーの取得](https://auth0.com/docs/api/management/v2/users/get-users-by-id#response-messages)」に記載されています。

## ユーザーの更新

ユーザーを更新します。

<Frame>
  <img src="https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/vef0um6ApqE_mEBO/docs/images/ja-jp/cdy7uua7fh8z/3tymSpaeod6EksWRJp1sge/1122b244d756d754fe41baac209a132b/Screenshot_2024-11-18_at_16.49.56.png?fit=max&auto=format&n=vef0um6ApqE_mEBO&q=85&s=ccd5ab441a674d9f55f004ddb956b925" alt="" width="1404" height="1213" data-path="docs/images/ja-jp/cdy7uua7fh8z/3tymSpaeod6EksWRJp1sge/1122b244d756d754fe41baac209a132b/Screenshot_2024-11-18_at_16.49.56.png" />
</Frame>

### 入力設定

| パラメーター | 説明                                                                                                                                     |
| ------ | -------------------------------------------------------------------------------------------------------------------------------------- |
| ユーザーID | 更新するユーザーのIDです。                                                                                                                         |
| ボディー   | 更新するAuth0ユーザープロパティのペイロードです。詳細については、[ユーザー更新](https://auth0.com/docs/ja-jp/api/management/v2/users/patch-users-by-id)APIのドキュメントをお読みください。 |

### 出力設定

期待される応答とステータスコードは、APIドキュメントの「[ユーザーの更新](https://auth0.com/docs/api/management/v2/users/patch-users-by-id#response-messages)」に記載されています。

## カスタムAPI要求

Auth0 APIのエンドポイントにカスタムAPI要求を送信します。

<Frame>
  <img src="https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/76Yi3c176GYlp9_Q/docs/images/ja-jp/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?fit=max&auto=format&n=76Yi3c176GYlp9_Q&q=85&s=930f7ff90b9d208bf138b89bdafa6a42" alt="Dashboard > Customize > Flows > Integrations > Auth0" data-og-width="1211" width="1211" data-og-height="862" height="862" data-path="docs/images/ja-jp/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/76Yi3c176GYlp9_Q/docs/images/ja-jp/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?w=280&fit=max&auto=format&n=76Yi3c176GYlp9_Q&q=85&s=f9bb5a430b6f7dc4e62e2dfb2733a8f5 280w, https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/76Yi3c176GYlp9_Q/docs/images/ja-jp/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?w=560&fit=max&auto=format&n=76Yi3c176GYlp9_Q&q=85&s=6ad41ad69f62112683b44a1a9ab9869e 560w, https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/76Yi3c176GYlp9_Q/docs/images/ja-jp/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?w=840&fit=max&auto=format&n=76Yi3c176GYlp9_Q&q=85&s=2204c33f558c15df30ab2ca59d211634 840w, https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/76Yi3c176GYlp9_Q/docs/images/ja-jp/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?w=1100&fit=max&auto=format&n=76Yi3c176GYlp9_Q&q=85&s=d874e53178dc469cc3c7a0c17c637ebe 1100w, https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/76Yi3c176GYlp9_Q/docs/images/ja-jp/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?w=1650&fit=max&auto=format&n=76Yi3c176GYlp9_Q&q=85&s=fd4e39c2e1ed039e611c7916eeac5d61 1650w, https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/76Yi3c176GYlp9_Q/docs/images/ja-jp/cdy7uua7fh8z/66uV9iuhwfnXUdE1quLOyx/2ae3ff26335acbcd172cbb40618a5a90/Screenshot_2025-01-24_at_18.50.26.png?w=2500&fit=max&auto=format&n=76Yi3c176GYlp9_Q&q=85&s=19960b6cf467aefba028202df298e63f 2500w" />
</Frame>

### 入力設定

| 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.                                                                                                                                                                                                                                                                                                                                                                                                                                                         |

### 出力設定

期待される応答とステータスコードは、Auth0 <Tooltip data-tooltip-id="react-containers-DefinitionTooltip-0" href="/docs/ja-jp/glossary?term=management-api" tip="Management API: 顧客が管理タスクを実行できるようにするための製品。" cta="用語集の表示">Management API</Tooltip>のドキュメントに記載されています。
