> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ユーザーのインポート時にユーザープロファイル属性を設定する方法

> Auth0 Management API を使用して、ユーザーのインポート時に属性を設定する方法について説明します。

このガイドでは、Auth0のManagement API (Management API: お客様が管理タスクを実行できるようにするプロダクトです。)を使用して、インポート時にユーザーのルート属性を設定する方法を説明します。これにより、ユーザーのインポート時にルート属性を設定するために必要なAPI呼び出しの回数を最小限に抑えられます。インポート可能な属性については、[Normalized ユーザープロファイル Structure](/docs/docs/ja-jp/manage-users/user-accounts/user-profiles/user-profile-structure)をご覧ください。

[Create Job to Import Users endpoint](/docs/docs/ja-jp/api/management/v2/jobs/post-users-imports) に `POST` リクエストを送信します。`MGMT_API_ACCESS_TOKEN`、`CONNECTION_ID`、`JSON_USER_FILE_PATH` のプレースホルダー値は、それぞれ Management API のAccess Token (Access Token: API にアクセスするために使用される、opaque string または JWT の形式の認可資格情報です。)、接続 ID、ユーザーファイル名に必ず置き換えてください。

Auth0 CLIをお使いですか？まだの場合は、このコマンドを実行する前に[CLIセッションのセットアップと認証](/docs/docs/ja-jp/deploy-monitor/auth0-cli)を行ってください。

| 値 | 説明 |
| - | - |
| `MGMT_API_ACCESS_TOKEN` | `create:users` の[scope](/docs/docs/ja-jp/glossary?term=scope)を持つ [Management API の access token](/docs/docs/ja-jp/secure/tokens/access-tokens/management-api-access-tokens)。 |
| `CONNECTION_ID` | ユーザーのインポート先となる接続の ID。この情報は、[Get All Connections endpoint](/docs/docs/ja-jp/api/management/v2/connections/get-connections)を使用して取得できます。 |
| `JSON_USER_FILE_PATH` | インポートするユーザーが含まれているファイルのファイル名。ファイルは JSON 形式で、ユーザーの ルート属性 を含める必要があります。使用可能な属性の一覧については、[ユーザープロファイル属性](/docs/docs/ja-jp/manage-users/user-accounts/user-profiles/user-profile-structure)を参照してください。ファイル形式の例については、[Bulk User Import Database Schema and Examples](/docs/docs/ja-jp/manage-users/user-migration/bulk-user-import-schema)を参照してください。 |


## Related topics

- [User Profile Structure](/docs/docs/manage-users/user-accounts/user-profiles/user-profile-structure.md)
- [Set Root Attributes During User Sign Up](/docs/docs/manage-users/user-accounts/user-profiles/root-attributes/set-root-attributes-during-user-sign-up.md)
- [Update Root Attributes For Users](/docs/docs/manage-users/user-accounts/user-profiles/root-attributes/update-root-attributes-for-users.md)
