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

# 新規ユーザーを作成する

> 認証情報を使用して、データベース接続内に新しいユーザーを作成します。

export const ResponseSchema = ({statusCode, type = "{}", children}) => {
  const [open, setOpen] = useState(false);
  return <div className="border border-gray-100 dark:border-gray-800 rounded-lg mb-3 overflow-hidden">
      <div className={`flex items-center gap-2.5 px-4 py-2.5 cursor-pointer select-none ${open ? "bg-gray-50 dark:bg-gray-800" : ""}`} onClick={() => setOpen(!open)}>
        {statusCode && <span className="border border-gray-300 dark:border-gray-600 text-gray-700 dark:text-gray-300 font-mono text-xs px-1.5 py-0.5 rounded">
            {statusCode.startsWith("default") ? "default" : statusCode}
          </span>}
        <span className="text-gray-500 dark:text-gray-400 text-sm font-mono">
          {type}
        </span>
        <span className="text-gray-400 dark:text-gray-500 text-sm italic">
          application/json
        </span>
        <svg className={`ml-auto opacity-50 transition-transform duration-200 ${open ? "rotate-180" : ""}`} width="16" height="16" viewBox="0 0 16 16" fill="none">
          <path d="M4 6l4 4 4-4" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
        </svg>
      </div>
      {open && <div className="px-4 pt-1 pb-3 border-t border-gray-100 dark:border-gray-800">
          {children}
        </div>}
    </div>;
};

<div id="endpoint">
  ## エンドポイント
</div>

`POST /dbconnections/signup`

ユーザーの認証情報と `connection` を指定すると、このエンドポイントで新しいユーザーを作成できます。

このエンドポイントはデータベース接続でのみ使用できます。

<div id="remarks">
  ### 注記
</div>

* auth0.js のサンプルスクリプトでは、ライブラリのバージョン 8 を使用しています。auth0.js バージョン 7 を使用している場合は、こちらの[リファレンスガイド](https://auth0.com/docs/libraries/auth0js/v7)を参照してください。

<div id="learn-more">
  ### 詳細情報
</div>

* [Auth0 データベース接続のパスワード強度](https://auth0.com/docs/authenticate/database-connections/password-strength)
* [Auth0 データベース接続のパスワードオプション](https://auth0.com/docs/authenticate/database-connections/password-options)
* [データベース接続への username の追加](https://auth0.com/docs/authenticate/database-connections/require-username)
* [メタデータの概要](https://auth0.com/docs/manage-users/user-accounts/metadata)

<div id="body-parameters">
  ## 本文パラメーター
</div>

<ParamField body="client_id" type="string" required>
  クライアントの `client_id`。
</ParamField>

<ParamField body="email" type="string">
  ユーザーのメールアドレス。
</ParamField>

<ParamField body="password" type="string" required>
  ユーザーが設定するパスワード。
</ParamField>

<ParamField body="phone_number" type="string">
  ユーザーの電話番号。
</ParamField>

<ParamField body="connection" type="string" required>
  クライアントに設定されたデータベースの名前。
</ParamField>

<ParamField body="username" type="string">
  ユーザーのusername。接続で username が必要な場合にのみ有効です。
</ParamField>

<ParamField body="given_name" type="string">
  ユーザーの名。
</ParamField>

<ParamField body="family_name" type="string">
  ユーザーの姓。
</ParamField>

<ParamField body="name" type="string">
  ユーザーの氏名。
</ParamField>

<ParamField body="nickname" type="string">
  ユーザーのニックネーム。
</ParamField>

<ParamField body="picture" type="string">
  ユーザーの画像を指す URI。
</ParamField>

<ParamField body="user_metadata" type="object">
  ユーザーに関連付けるユーザーメタデータ。設定する場合、このフィールドは 10 個以下のプロパティを含むオブジェクトである必要があります。プロパティ名は最大 100 文字、プロパティ値は最大 500 文字以内の文字列である必要があります。
</ParamField>

<div id="response-schema">
  ## レスポンススキーマ
</div>

<ResponseSchema>
  <ResponseField name="_id" type="string">
    ユーザーの一意の識別子。
  </ResponseField>

  <ResponseField name="email_verified" type="boolean">
    ユーザーのメールアドレスが検証済みかどうかを示します。
  </ResponseField>

  <ResponseField name="email" type="string">
    ユーザーのメールアドレス。
  </ResponseField>

  <ResponseField name="username" type="string">
    ユーザーのusername。
  </ResponseField>

  <ResponseField name="given_name" type="string">
    ユーザーの名。
  </ResponseField>

  <ResponseField name="family_name" type="string">
    ユーザーの姓。
  </ResponseField>

  <ResponseField name="name" type="string">
    ユーザーの氏名。
  </ResponseField>

  <ResponseField name="nickname" type="string">
    ユーザーのニックネーム。
  </ResponseField>

  <ResponseField name="picture" type="string">
    ユーザーのプロフィール画像を指す URI。
  </ResponseField>
</ResponseSchema>

<div id="response-messages">
  ## レスポンスメッセージ
</div>

| Status | Description                     |
| ------ | ------------------------------- |
| 200    | ユーザーの作成に成功しました。                 |
| 400    | 不正なリクエストです。パラメーターが不足しているか、無効です。 |
| 409    | 競合です。ユーザーはすでに存在します。             |
