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

# Web で組織の詳細を編集する

> 名前、表示名、ブランドカラー、ロゴなど、organization の詳細を編集します。

> [!WARNING]
>
> **Auth0 Universal Components機能は現在、[早期アクセス](/docs/docs/troubleshoot/product-lifecycle/product-release-stages)です。**
>
> 参加をご希望の場合は、Auth0 Supportまでお問い合わせください。
>
> この機能を使用することにより、Oktaの該当する無料トライアル規約および[Master Subscription Agreement](https://www.okta.com/legal)に同意したものとみなされます。

`OrganizationDetailsEdit` コンポーネントは、[組織](/docs/docs/ja-jp/manage-users/organizations)の詳細を編集するための統合インターフェースを提供します。

読み込み中

組織の詳細編集コンポーネントのプレビュー

## サードパーティアプリケーションのアクセス

`third_party_client_access` は Organizationレベルの設定で、サードパーティアプリケーションがOrganizationの SSO プロバイダーを通じてユーザーを認証できるかどうかを制御します。設定できる値は `"allow"` と `"block"` で、既定値は `"block"` です。

コンポーネントは `GET /my-org/config` を読み取り、テナントが許可している値を判断します。`third_party_client_access.allowed_values` に `"block"` のみが含まれる場合、ラジオグループは表示されるものの読み取り専用となり、Organizationの管理者は変更できません。両方の値が許可されている場合は、このフィールドを編集でき、Organization詳細リソースに保存されます。

この設定はOrganization全体に適用されるゲートとして機能します。Cross App Access (XAA) を構成するものではありません。XAA は SSO プロバイダーレベルで制御される別の認可経路です。

> [tab] React
>
> ## 設定の要件
>
> **Auth0 Configuration が必要です**—tenant で
> My Organization API が設定されていることを確認してください。[設定ガイドを表示
> →](/docs/docs/ja-jp/get-started/universal-components/web/components/build-delegated-admin#enable-the-my-organization-api)
>
> ## インストール
>
> ```bash pnpm  wrap lines theme={null}
> pnpm add @auth0/universal-components-react
> ```
>
> ```bash npm wrap lines theme={null}
> npm install @auth0/universal-components-react
> ```
>
> どちらのコマンドを実行しても、共有ユーティリティとAuth0連携に必要な@auth0/universal-components-core
> 依存パッケージもインストールされます。
>
> ## はじめに
>
> ```tsx wrap lines theme={null}
> import { OrganizationDetailsEdit } from "@auth0/universal-components-react";
> import { useNavigate } from "react-router-dom";
>
> export function OrganizationSettingsPage() {
>   const navigate = useNavigate();
>
>   return (
>     <OrganizationDetailsEdit
>       saveAction={{
>         onAfter: () => navigate("/organization"),
>       }}
>       backButton={{
>         onClick: () => navigate("/organization"),
>       }}
>     />
>   );
> }
> ```
>
> > [accordion] 連携の完全な例
> >
> > ```tsx lines theme={null}
> > import React from "react";
> > import { OrganizationDetailsEdit } from "@auth0/universal-components-react";
> > import { Auth0Provider } from "@auth0/auth0-react";
> > import { Auth0ComponentProvider } from "@auth0/universal-components-react/spa";
> > import { useNavigate } from "react-router-dom";
> > import { analytics } from "./lib/analytics";
> >
> > function OrganizationSettingsPage() {
> >   const navigate = useNavigate();
> >
> >   const handleSaveSuccess = (org) => {
> >     analytics.track("Organization Updated", {
> >       name: org.name,
> >       displayName: org.display_name,
> >     });
> >     navigate("/organization");
> >   };
> >
> >   return (
> >     <div className="max-w-2xl mx-auto p-6">
> >       <OrganizationDetailsEdit
> >         schema={{
> >           details: {
> >             displayName: {
> >               required: true,
> >               maxLength: 100,
> >             },
> >             color: {
> >               regex: /^#[0-9A-Fa-f]{6}$/,
> >               errorMessage: "Enter a valid hex color",
> >             },
> >           },
> >         }}
> >         saveAction={{
> >           onBefore: (org) => {
> >             return confirm(`Save changes to "${org.display_name}"?`);
> >           },
> >           onAfter: handleSaveSuccess,
> >         }}
> >         cancelAction={{
> >           onAfter: () => navigate("/organization"),
> >         }}
> >         backButton={{
> >           onClick: () => navigate("/organization"),
> >         }}
> >         customMessages={{
> >           header: {
> >             title: "Organization Settings",
> >           },
> >           save_organization_changes_message: "Settings saved successfully!",
> >         }}
> >         styling={{
> >           variables: {
> >             common: {
> >               "--color-primary": "#059669",
> >             },
> >           },
> >           classes: {
> >             "OrganizationDetails_Card": "shadow-xl rounded-lg",
> >           },
> >         }}
> >       />
> >     </div>
> >   );
> > }
> >
> > export default function App() {
> >   const domain = "your-domain.auth0.com";
> >   const clientId = "your-client-id";
> >
> >   return (
> >     <Auth0Provider
> >       domain={domain}
> >       clientId={clientId}
> >       authorizationParams={{
> >         redirect_uri: window.location.origin,
> >       }}
> >       interactiveErrorHandler="popup" // Universal Login のポップアップでステップアップ認証チャレンジを処理するために必要
> >     >
> >       <Auth0ComponentProvider>
> >         <OrganizationSettingsPage />
> >       </Auth0ComponentProvider>
> >     </Auth0Provider>
> >   );
> > }
> >
> > ```
>
> ## プロップス
>
> ### 必須のプロップス
>
> 必須の props はコンポーネントの動作に不可欠です。`OrganizationDetailsEdit` には必須の props はなく、現在の組織の詳細を My Organization API から自動的に読み込みます。
>
> ***
>
> ### 表示関連のプロップス
>
> 表示用のプロップスは、コンポーネントの動作に影響を与えることなく、その表示方法を制御します。セクションを非表示にしたり、読み取り専用モードを有効にしたりする際に使用します。
>
> <table>
>   <thead>
>     <tr>
>       <th>プロップ</th>
>       <th>型</th>
>       <th>説明</th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>
>         `readOnly`
>       </td>
>
>       <td>
>         `boolean`
>       </td>
>
>       <td>
>         すべてのフォーム入力を無効にします。デフォルト: `false`
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `hideHeader`
>       </td>
>
>       <td>
>         `boolean`
>       </td>
>
>       <td>
>         ヘッダーセクションを非表示にします。デフォルト: `false`
>       </td>
>     </tr>
>   </tbody>
> </table>
>
> ***
>
> ### Action のプロップス
>
> Actionのプロップスはユーザー操作を処理し、ユーザーが変更を保存またはキャンセルしたときの動作を定義します。ライフサイクルフック (`onBefore`、`onAfter`) を使用すると、アプリケーションのルーティングや分析と連携できます。
>
> <table>
>   <thead>
>     <tr>
>       <th>プロパティ</th>
>       <th>型</th>
>       <th>説明</th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>
>         `saveAction`
>       </td>
>
>       <td>
>         `ComponentAction<OrganizationPrivate>`
>       </td>
>
>       <td>
>         変更を保存するアクション。
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `cancelAction`
>       </td>
>
>       <td>
>         `ComponentAction<OrganizationPrivate>`
>       </td>
>
>       <td>
>         変更をキャンセルまたは破棄するアクション。
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `backButton`
>       </td>
>
>       <td>
>         `Object`
>       </td>
>
>       <td>
>         戻るボタンの設定。
>       </td>
>     </tr>
>   </tbody>
> </table>
>
> **saveAction**
>
> **型:** `ComponentAction<OrganizationPrivate>`
>
> ユーザーが organization の変更を送信した際の保存フローを制御します。保存の成功後に別の画面へ遷移させるには `onAfter` を使用します。
>
> **プロパティ:**
>
> * `disabled`—保存ボタンを無効にします (たとえば、別の操作の実行中) 。
> * `onBefore(data)`—保存処理の前に実行されます。保存を中止するには`false`を返します (たとえば、先に確認ダイアログを表示する場合) 。
> * `onAfter(data)`—organizationが正常に保存された後に実行されます。画面遷移やイベントの追跡に使用します。
>
> **例:**
>
> ```tsx wrap lines theme={null}
> // 保存後に前の画面へ戻る
> saveAction={{
>   onAfter: () => navigate("/organization"),
> }}
>
> // 保存前に確認ダイアログを表示する
> saveAction={{
>   onBefore: (org) => {
>     return confirm(`Save changes to "${org.display_name}"?`);
>   },
>   onAfter: () => navigate("/organization"),
> }}
>
> // 保存時に分析イベントを記録する
> saveAction={{
>   onAfter: (org) => {
>     analytics.track("Organization Updated", {
>       name: org.name,
>       displayName: org.display_name,
>     });
>     navigate("/organization");
>   },
> }}
> ```
>
> ***
>
> **cancelAction**
>
> **型:** `ComponentAction<OrganizationPrivate>`
>
> キャンセル/破棄のフローを制御します。破棄された変更の管理には、このアクションを使用します。
>
> **プロパティ:**
>
> * `disabled`—キャンセルボタンを無効にします
> * `onAfter(data)`—キャンセルが確定した後に実行されます。Formから移動する際に使用します。
>
> **例:**
>
> ```tsx wrap lines theme={null}
> <OrganizationDetailsEdit
>   cancelAction={{
>     onAfter: () => navigate("/organization"),
>   }}
> />
> ```
>
> ***
>
> **backButton**
>
> **型:** `{ icon?: LucideIcon; onClick: (e: MouseEvent) => void }`
>
> コンポーネントのヘッダーにある戻るボタンを設定します。組織の概要ページや前のページに戻る導線として使用します。
>
> **プロパティ:**
>
> * `icon`—カスタム Lucide アイコンコンポーネント (省略可、デフォルトは ArrowLeft)
> * `onClick`—ナビゲーション用のクリックハンドラー
>
> **例:**
>
> ```tsx wrap lines theme={null}
> import { ChevronLeft } from "lucide-react";
>
> <OrganizationDetailsEdit
>   backButton={{
>     icon: ChevronLeft,
>     onClick: () => navigate("/organization"),
>   }}
> />;
> ```
>
> ***
>
> ### カスタマイズ用プロップス
>
> カスタマイズ用のプロップスを使えば、ソースコードを変更せずに、ブランド、ロケール、バリデーションの要件に合わせてコンポーネントを調整できます。
>
> <table>
>   <thead>
>     <tr>
>       <th>プロパティ</th>
>       <th>型</th>
>       <th>説明</th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>
>         `schema`
>       </td>
>
>       <td>
>         `OrganizationDetailsEditSchemas`
>       </td>
>
>       <td>
>         フィールドのバリデーションルール。
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `customMessages`
>       </td>
>
>       <td>
>         `Partial<OrganizationDetailsEditMessages>`
>       </td>
>
>       <td>
>         i18n テキストの上書き。
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `styling`
>       </td>
>
>       <td>
>         `ComponentStyling<OrganizationEditClasses>`
>       </td>
>
>       <td>
>         CSS 変数とクラスの上書き。
>       </td>
>     </tr>
>   </tbody>
> </table>
>
> **スキーマ**
>
> organizationの詳細フィールドにカスタムのバリデーションルールを設定します。
>
> > [accordion] 利用可能なスキーマフィールド
> >
> > すべてのschemaフィールドでサポートされる項目: `regex`, `errorMessage`, `minLength`, `maxLength`, `required`
> >
> > **details.name**—組織の内部名
> > **details.displayName**—組織の表示名
> > **details.primaryColor**—プライマリブランドカラー (16進数形式)
> > **details.backgroundColor**—ページの背景色 (16進数形式)
> > **details.logoURL**—ロゴのURL
>
> ```tsx wrap lines theme={null}
> <OrganizationDetailsEdit
>   schema={{
>     details: {
>       name: {
>         minLength: 3,
>         maxLength: 50,
>         regex: /^[a-zA-Z0-9-_]+$/,
>         errorMessage: "Name must be alphanumeric with hyphens/underscores",
>       },
>       displayName: {
>         required: true,
>         maxLength: 100,
>       },
>       primaryColor: {
>         regex: /^#[0-9A-Fa-f]{6}$/,
>         errorMessage: "Enter a valid hex color (e.g., #FF5500)",
>       },
>       backgroundColor: {
>         regex: /^#[0-9A-Fa-f]{6}$/,
>         errorMessage: "Enter a valid hex color (e.g., #FFFFFF)",
>       },
>       logoURL: {
>         regex: /^https:\/\/.+/,
>         errorMessage: "Logo URL must use HTTPS",
>       },
>     },
>   }}
> />
> ```
>
> ***
>
> **customMessages**
>
> すべてのテキストと翻訳をカスタマイズします。すべてのフィールドは任意で、指定されていない場合はデフォルトが使用されます。
>
> > [accordion] 利用可能なメッセージ
> >
> > **header**—コンポーネントヘッダー
> >
> > * `title`, `back_button_text`
> >
> > **details.sections.settings**—設定セクション
> >
> > * `title`
> > * `fields.name`—`label`, `placeholder`, `helper_text`, `error`
> > * `fields.display_name`—`label`, `placeholder`, `helper_text`, `error`
> > * `fields.third_party_client_access`—`label`, `options.block.label`, `options.block.helper_text`, `options.allow.label`, `options.allow.helper_text`
> >
> > **details.sections.branding**—ブランディングセクション
> >
> > * `title`
> > * `fields.logo`—`label`, `helper_text`, `error`
> > * `fields.primary_color`—`label`, `helper_text`, `error`
> > * `fields.page_background_color`—`label`, `helper_text`, `error`
> >
> > **details**—Formのラベル
> >
> > * `unsaved_changes_text`, `submit_button_label`, `cancel_button_label`
> >
> > **notifications**—APIレスポンス
> >
> > * `save_organization_changes_message`, `organization_changes_error_message`, `organization_changes_error_message_generic`
>
> ```tsx wrap lines theme={null}
> <OrganizationDetailsEdit
>   customMessages={{
>     header: {
>       title: "Edit Organization",
>     },
>     details: {
>       sections: {
>         settings: {
>           fields: {
>             name: {
>               label: "Organization ID",
>               helper_text: "Internal identifier (cannot be changed after creation)",
>             },
>             display_name: {
>               label: "Organization Name",
>               placeholder: "Enter display name",
>             },
>             third_party_client_access: {
>               label: "Third-Party Application Access",
>               options: {
>                 block: {
>                   label: "Block Third-Party Access",
>                   helper_text: "Users can only authenticate through official apps",
>                 },
>                 allow: {
>                   label: "Allow Third-Party Access",
>                   helper_text: "Users can authenticate through external applications",
>                 },
>               },
>             },
>           },
>         },
>       },
>     },
>     save_organization_changes_message: "Organization updated successfully!",
>   }}
> />
> ```
>
> ***
>
> **スタイリング**
>
> CSS変数とクラスのオーバーライドで外観をカスタマイズできます。テーマに応じたスタイリングにも対応しています。
>
> > [accordion] 利用可能なスタイリングオプション
> >
> > **変数**—CSS カスタムプロパティ
> >
> > * `common`—すべてのテーマに適用
> > * `light`—ライトテーマのみ
> > * `dark`—ダークテーマのみ
> >
> > **クラス**—コンポーネントクラスのオーバーライド
> >
> > * `OrganizationDetails_Card`
> > * `OrganizationDetails_FormActions`
> > * `OrganizationDetails_SettingsDetails`
> > * `OrganizationDetails_BrandingDetails`
> > * `OrganizationDetails_ThirdPartyAccess`
>
> ```tsx wrap lines theme={null}
> <OrganizationDetailsEdit
>   styling={{
>     variables: {
>       common: {
>         "--font-size-title": "1.5rem",
>       },
>       light: {
>         "--color-primary": "#059669",
>       },
>     },
>     classes: {
>       "OrganizationDetails_Card": "shadow-lg rounded-xl p-6",
>     },
>   }}
> />
> ```
>
> ***
>
> ## 高度なカスタマイズ
>
> ### 利用可能なフック
>
> これらのフックは、UIを持たない基盤ロジックのみを提供します。Auth0 APIとの連携を活用しつつ、完全に独自のインターフェースを構築したい場合にご利用ください。
>
> <table>
>   <thead>
>     <tr>
>       <th>Hook</th>
>       <th>説明</th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>
>         `useOrganizationDetailsEdit`
>       </td>
>
>       <td>組織の編集ロジックとAPI連携</td>
>     </tr>
>   </tbody>
> </table>

> [tab] Next.js
>
> ## 設定の要件
>
> **Auth0 Configuration が必要です**—tenant が
> My Organization API で構成されていることを確認してください。[設定ガイドを表示
> →](/docs/docs/ja-jp/get-started/universal-components/web/components/build-delegated-admin#configure-auth0-dashboard)
>
> ## インストール
>
> ```bash npm (Recommended) wrap lines theme={null}
> npm install @auth0/universal-components-react
> ```
>
> ```bash pnpm wrap lines theme={null}
> pnpm add @auth0/universal-components-react
> ```
>
> npm または pnpm コマンドを実行すると、共通ユーティリティと Auth0 連携用の @auth0/universal-components-core
> 依存パッケージがインストールされます。
>
> ## はじめに
>
> ```tsx page.tsx wrap lines theme={null}
> import { OrganizationDetailsEdit } from "@auth0/universal-components-react";
> import { useRouter } from "next/navigation";
>
> export function OrganizationSettingsPage() {
>   const router = useRouter();
>
>   return (
>     <OrganizationDetailsEdit
>       saveAction={{
>         onAfter: () => router.push("/organization"),
>       }}
>       backButton={{
>         onClick: () => router.push("/organization"),
>       }}
>     />
>   );
> }
> ```
>
> > [accordion] 連携の完全な例
> >
> > ```tsx lines theme={null}
> > import React from "react";
> > import { OrganizationDetailsEdit } from "@auth0/universal-components-react";
> > import { useRouter } from "next/navigation";
> > import { analytics } from "./lib/analytics";
> >
> > function OrganizationSettingsPage() {
> >   const router = useRouter();
> >
> >   const handleSaveSuccess = (org) => {
> >     analytics.track("Organization Updated", {
> >       name: org.name,
> >       displayName: org.display_name,
> >     });
> >     router.push("/organization");
> >   };
> >
> >   return (
> >     <div className="max-w-2xl mx-auto p-6">
> >       <OrganizationDetailsEdit
> >         schema={{
> >           details: {
> >             displayName: {
> >               required: true,
> >               maxLength: 100,
> >             },
> >             color: {
> >               regex: /^#[0-9A-Fa-f]{6}$/,
> >               errorMessage: "Enter a valid hex color",
> >             },
> >           },
> >         }}
> >         saveAction={{
> >           onBefore: (org) => {
> >             return confirm(`Save changes to "${org.display_name}"?`);
> >           },
> >           onAfter: handleSaveSuccess,
> >         }}
> >         cancelAction={{
> >           onAfter: () => router.push("/organization"),
> >         }}
> >         backButton={{
> >           onClick: () => router.push("/organization"),
> >         }}
> >         customMessages={{
> >           header: {
> >             title: "Organization Settings",
> >           },
> >           save_organization_changes_message: "Settings saved successfully!",
> >         }}
> >         styling={{
> >           variables: {
> >             common: {
> >               "--color-primary": "#059669",
> >             },
> >           },
> >           classes: {
> >             "OrganizationDetails_Card": "shadow-xl rounded-lg",
> >           },
> >         }}
> >       />
> >     </div>
> >   );
> > }
> >
> > export default OrganizationSettingsPage;
> > ```
>
> ## プロップス
>
> ### 主要なプロパティ
>
> コアプロップスはコンポーネントの動作に不可欠です。`OrganizationDetailsEdit` には必須のプロップはなく、現在の組織の詳細を My Organization API から自動的に読み込みます。
>
> ***
>
> ### 表示関連のプロップス
>
> 表示用のプロップスは、コンポーネントの動作に影響を与えることなく、その表示方法を制御します。セクションを非表示にしたり、読み取り専用モードを有効にしたりする際に使用します。
>
> <table>
>   <thead>
>     <tr>
>       <th>プロップ</th>
>       <th>型</th>
>       <th>説明</th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>
>         `readOnly`
>       </td>
>
>       <td>
>         `boolean`
>       </td>
>
>       <td>
>         すべてのフォーム入力を無効にします。デフォルト: `false`
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `hideHeader`
>       </td>
>
>       <td>
>         `boolean`
>       </td>
>
>       <td>
>         ヘッダーセクションを非表示にします。デフォルト: `false`
>       </td>
>     </tr>
>   </tbody>
> </table>
>
> ***
>
> ### Action のプロップス
>
> アクションプロパティはユーザー操作を処理し、ユーザーが変更を保存またはキャンセルしたときの動作を定義します。ライフサイクルフック (`onBefore`、`onAfter`) を使用して、アプリケーションのルーティングや分析機能と連携できます。
>
> <table>
>   <thead>
>     <tr>
>       <th>プロパティ</th>
>       <th>型</th>
>       <th>説明</th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>
>         `saveAction`
>       </td>
>
>       <td>
>         `ComponentAction<OrganizationPrivate>`
>       </td>
>
>       <td>
>         変更を保存するアクション。
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `cancelAction`
>       </td>
>
>       <td>
>         `ComponentAction<OrganizationPrivate>`
>       </td>
>
>       <td>
>         変更をキャンセルまたは破棄するアクション。
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `backButton`
>       </td>
>
>       <td>
>         `Object`
>       </td>
>
>       <td>
>         戻るボタンの設定。
>       </td>
>     </tr>
>   </tbody>
> </table>
>
> **saveAction**
>
> **型:** `ComponentAction<OrganizationPrivate>`
>
> ユーザーが組織の変更を送信した際の保存フローを制御します。保存の成功後に別の画面へ遷移させるには `onAfter` を使用します。
>
> **プロパティ:**
>
> * `disabled`—保存ボタンを無効にします (たとえば、別の操作の実行中) 。
> * `onBefore(data)`—保存処理の前に実行されます。保存を中止するには`false`を返します (たとえば、先に確認ダイアログを表示する場合) 。
> * `onAfter(data)`—organizationが正常に保存された後に実行されます。画面遷移やイベントの追跡に使用します。
>
> **よくあるパターン:**
>
> ```tsx wrap lines theme={null}
> // 保存後に前の画面へ戻る
> saveAction={{
>   onAfter: () => router.push("/organization"),
> }}
>
> // 保存前に確認ダイアログを表示する
> saveAction={{
>   onBefore: (org) => {
>     return confirm(`Save changes to "${org.display_name}"?`);
>   },
>   onAfter: () => router.push("/organization"),
> }}
>
> // 保存時に分析イベントを記録する
> saveAction={{
>   onAfter: (org) => {
>     analytics.track("Organization Updated", {
>       name: org.name,
>       displayName: org.display_name,
>     });
>     router.push("/organization");
>   },
> }}
> ```
>
> ***
>
> **cancelAction**
>
> **型:** `ComponentAction<OrganizationPrivate>`
>
> キャンセル/破棄のフローを制御します。破棄された変更の管理には、このアクションを使用します。
>
> **プロパティ:**
>
> * `disabled`—キャンセルボタンを無効にします
> * `onAfter(data)`—キャンセルが確定した後に実行されます。Formから移動する際に使用します。
>
> **例:**
>
> ```tsx wrap lines theme={null}
> <OrganizationDetailsEdit
>   cancelAction={{
>     onAfter: () => router.push("/organization"),
>   }}
> />
> ```
>
> ***
>
> **backButton**
>
> **型:** `{ icon?: LucideIcon; onClick: (e: MouseEvent) => void }`
>
> コンポーネントのヘッダーにある戻るボタンを設定します。組織の概要ページや前のページに戻る導線として使用します。
>
> **プロパティ:**
>
> * `icon`—カスタム Lucide アイコンコンポーネント (省略可、デフォルトは ArrowLeft)
> * `onClick`—ナビゲーション用のクリックハンドラー
>
> **例:**
>
> ```tsx wrap lines theme={null}
> import { ChevronLeft } from "lucide-react";
>
> <OrganizationDetailsEdit
>   backButton={{
>     icon: ChevronLeft,
>     onClick: () => router.push("/organization"),
>   }}
> />;
> ```
>
> ***
>
> ### カスタマイズ用プロップス
>
> カスタマイズ用のプロップスを使えば、ソースコードを変更せずに、ブランド、ロケール、バリデーションの要件に合わせてコンポーネントを調整できます。
>
> <table>
>   <thead>
>     <tr>
>       <th>プロパティ</th>
>       <th>型</th>
>       <th>説明</th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>
>         `schema`
>       </td>
>
>       <td>
>         `OrganizationDetailsEditSchemas`
>       </td>
>
>       <td>
>         フィールドのバリデーションルール。
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `customMessages`
>       </td>
>
>       <td>
>         `Partial<OrganizationDetailsEditMessages>`
>       </td>
>
>       <td>
>         i18n テキストの上書き。
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `styling`
>       </td>
>
>       <td>
>         `ComponentStyling<OrganizationEditClasses>`
>       </td>
>
>       <td>
>         CSS 変数とクラスの上書き。
>       </td>
>     </tr>
>   </tbody>
> </table>
>
> **スキーマ**
>
> organizationの詳細フィールドにカスタムのバリデーションルールを設定します。
>
> > [accordion] 利用可能なスキーマフィールド
> >
> > すべてのschemaフィールドでサポートされる項目: `regex`, `errorMessage`, `minLength`, `maxLength`, `required`
> >
> > **details.name**—組織の内部名
> > **details.displayName**—組織の表示名
> > **details.primaryColor**—プライマリブランドカラー (16進数形式)
> > **details.backgroundColor**—ページの背景色 (16進数形式)
> > **details.logoURL**—ロゴのURL
>
> ```tsx wrap lines theme={null}
> <OrganizationDetailsEdit
>   schema={{
>     details: {
>       name: {
>         minLength: 3,
>         maxLength: 50,
>         regex: /^[a-zA-Z0-9-_]+$/,
>         errorMessage: "Name must be alphanumeric with hyphens/underscores",
>       },
>       displayName: {
>         required: true,
>         maxLength: 100,
>       },
>       primaryColor: {
>         regex: /^#[0-9A-Fa-f]{6}$/,
>         errorMessage: "Enter a valid hex color (e.g., #FF5500)",
>       },
>       backgroundColor: {
>         regex: /^#[0-9A-Fa-f]{6}$/,
>         errorMessage: "Enter a valid hex color (e.g., #FFFFFF)",
>       },
>       logoURL: {
>         regex: /^https:\/\/.+/,
>         errorMessage: "Logo URL must use HTTPS",
>       },
>     },
>   }}
> />
> ```
>
> ***
>
> **customMessages**
>
> すべてのテキストと翻訳をカスタマイズします。すべてのフィールドは任意で、指定されていない場合はデフォルトが使用されます。
>
> > [accordion] 利用可能なメッセージ
> >
> > **header**—コンポーネントヘッダー
> >
> > * `title`, `back_button_text`
> >
> > **details.sections.settings**—設定セクション
> >
> > * `title`
> > * `fields.name`—`label`, `placeholder`, `helper_text`, `error`
> > * `fields.display_name`—`label`, `placeholder`, `helper_text`, `error`
> > * `fields.third_party_client_access`—`label`, `options.block.label`, `options.block.helper_text`, `options.allow.label`, `options.allow.helper_text`
> >
> > **details.sections.branding**—ブランディングセクション
> >
> > * `title`
> > * `fields.logo`—`label`, `helper_text`, `error`
> > * `fields.primary_color`—`label`, `helper_text`, `error`
> > * `fields.page_background_color`—`label`, `helper_text`, `error`
> >
> > **details**—Formのラベル
> >
> > * `unsaved_changes_text`, `submit_button_label`, `cancel_button_label`
> >
> > **notifications**—APIレスポンス
> >
> > * `save_organization_changes_message`, `organization_changes_error_message`, `organization_changes_error_message_generic`
>
> ```tsx wrap lines theme={null}
> <OrganizationDetailsEdit
>   customMessages={{
>     header: {
>       title: "Edit Organization",
>     },
>     details: {
>       sections: {
>         settings: {
>           fields: {
>             name: {
>               label: "Organization ID",
>               helper_text: "Internal identifier (cannot be changed after creation)",
>             },
>             display_name: {
>               label: "Organization Name",
>               placeholder: "Enter display name",
>             },
>             third_party_client_access: {
>               label: "Third-Party Application Access",
>               options: {
>                 block: {
>                   label: "Block Third-Party Access",
>                   helper_text: "Users can only authenticate through official apps",
>                 },
>                 allow: {
>                   label: "Allow Third-Party Access",
>                   helper_text: "Users can authenticate through external applications",
>                 },
>               },
>             },
>           },
>         },
>       },
>     },
>     save_organization_changes_message: "Organization updated successfully!",
>   }}
> />
> ```
>
> ***
>
> **スタイリング**
>
> CSS変数とクラスのオーバーライドで外観をカスタマイズできます。テーマに応じたスタイリングにも対応しています。
>
> > [accordion] 利用可能なスタイリングオプション
> >
> > **変数**—CSS カスタムプロパティ
> >
> > * `common`—すべてのテーマに適用
> > * `light`—ライトテーマのみ
> > * `dark`—ダークテーマのみ
> >
> > **クラス**—コンポーネントクラスのオーバーライド
> >
> > * `OrganizationDetails_Card`
> > * `OrganizationDetails_FormActions`
> > * `OrganizationDetails_SettingsDetails`
> > * `OrganizationDetails_BrandingDetails`
> > * `OrganizationDetails_ThirdPartyAccess`
>
> ```tsx wrap lines theme={null}
> <OrganizationDetailsEdit
>   styling={{
>     variables: {
>       common: {
>         "--font-size-title": "1.5rem",
>       },
>       light: {
>         "--color-primary": "#059669",
>       },
>     },
>     classes: {
>       "OrganizationDetails_Card": "shadow-lg rounded-xl p-6",
>     },
>   }}
> />
> ```
>
> ***
>
> ## 高度なカスタマイズ
>
> ### 利用可能なフック
>
> これらのフックは、UIを持たない基盤ロジックのみを提供します。Auth0 APIとの連携を活用しつつ、完全に独自のインターフェースを構築したい場合にご利用ください。
>
> <table>
>   <thead>
>     <tr>
>       <th>Hook</th>
>       <th>説明</th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>
>         `useOrganizationDetailsEdit`
>       </td>
>
>       <td>組織の編集ロジックとAPI連携</td>
>     </tr>
>   </tbody>
> </table>

> [tab] shadcn
>
> ## 設定の要件
>
> **Auth0 Configuration が必要です**—tenant が
> My Organization API で構成されていることを確認してください。[設定ガイドを表示
> →](/docs/docs/ja-jp/get-started/universal-components/web/components/build-delegated-admin#configure-auth0-dashboard)
>
> ## インストール
>
> GitHub Registry を使用して、shadcn CLI 経由でコンポーネントをインストールします。
>
> ```bash wrap lines theme={null}
> npx shadcn@latest add auth0/auth0-ui-components/react/my-organization/organization-details-edit
> ```
>
> shadcn CLI では、共有ユーティリティと Auth0 連携に必要な `@auth0/universal-components-core`
> 依存関係もインストールされます。
> **shadcn CLI v2.5.0+** が必要です。
>
> **レガシー Vercel レジストリの提供終了**: Vercel でホストされていたレジストリ
> (`https://auth0-universal-components.vercel.app/r/...`) は
> **2026年9月17日**に提供を終了しました。上記の GitHub Registry パスを使用してください。
>
> ## はじめに
>
> ```tsx wrap lines theme={null}
> import { OrganizationDetailsEdit } from "@/components/auth0/my-organization/organization-details-edit";
>
> export function OrganizationSettingsPage() {
>   const navigate = useNavigate();
>
>   return (
>     <OrganizationDetailsEdit
>       saveAction={{
>         onAfter: () => navigate("/organization"),
>       }}
>       backButton={{
>         onClick: () => navigate("/organization"),
>       }}
>     />
>   );
> }
> ```
>
> > [accordion] 連携の完全な例
> >
> > ```tsx lines theme={null}
> > import React from "react";
> > import { OrganizationDetailsEdit } from "@/components/auth0/my-organization/organization-details-edit";
> > import { Auth0Provider } from "@auth0/auth0-react";
> > import { Auth0ComponentProvider } from "@auth0/universal-components-react/spa";
> > import { useNavigate } from "react-router-dom";
> > import { analytics } from "./lib/analytics";
> >
> > function OrganizationSettingsPage() {
> >   const navigate = useNavigate();
> >
> >   const handleSaveSuccess = (org) => {
> >     analytics.track("Organization Updated", {
> >       name: org.name,
> >       displayName: org.display_name,
> >     });
> >     navigate("/organization");
> >   };
> >
> >   return (
> >     <div className="max-w-2xl mx-auto p-6">
> >       <OrganizationDetailsEdit
> >         schema={{
> >           details: {
> >             displayName: {
> >               required: true,
> >               maxLength: 100,
> >             },
> >             color: {
> >               regex: /^#[0-9A-Fa-f]{6}$/,
> >               errorMessage: "Enter a valid hex color",
> >             },
> >           },
> >         }}
> >         saveAction={{
> >           onBefore: (org) => {
> >             return confirm(`Save changes to "${org.display_name}"?`);
> >           },
> >           onAfter: handleSaveSuccess,
> >         }}
> >         cancelAction={{
> >           onAfter: () => navigate("/organization"),
> >         }}
> >         backButton={{
> >           onClick: () => navigate("/organization"),
> >         }}
> >         customMessages={{
> >           header: {
> >             title: "Organization Settings",
> >           },
> >           save_organization_changes_message: "Settings saved successfully!",
> >         }}
> >         styling={{
> >           variables: {
> >             common: {
> >               "--color-primary": "#059669",
> >             },
> >           },
> >           classes: {
> >             "OrganizationDetails_Card": "shadow-xl rounded-lg",
> >           },
> >         }}
> >       />
> >     </div>
> >   );
> > }
> >
> > export default function App() {
> >   const domain = "your-domain.auth0.com";
> >   const clientId = "your-client-id";
> >
> >   return (
> >     <Auth0Provider
> >       domain={domain}
> >       clientId={clientId}
> >       authorizationParams={{
> >         redirect_uri: window.location.origin,
> >       }}
> >       interactiveErrorHandler="popup" // Universal Login のポップアップでステップアップ認証のチャレンジを処理するために必要
> >     >
> >       <Auth0ComponentProvider>
> >         <OrganizationSettingsPage />
> >       </Auth0ComponentProvider>
> >     </Auth0Provider>
> >   );
> > }
> >
> > ```
>
> ## プロップス
>
> ### 主要なプロップス
>
> コアプロップスはコンポーネントの動作に不可欠です。`OrganizationDetailsEdit` には必須のプロップはなく、現在の組織の詳細を My Organization API から自動的に読み込みます。
>
> ***
>
> ### 表示関連のプロップス
>
> 表示用のプロップスは、コンポーネントの動作に影響を与えることなく、その表示方法を制御します。セクションを非表示にしたり、読み取り専用モードを有効にしたりする際に使用します。
>
> <table>
>   <thead>
>     <tr>
>       <th>プロパティ</th>
>       <th>型</th>
>       <th>説明</th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>
>         `readOnly`
>       </td>
>
>       <td>
>         `boolean`
>       </td>
>
>       <td>
>         すべてのフォーム入力を無効にします。デフォルト: `false`
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `hideHeader`
>       </td>
>
>       <td>
>         `boolean`
>       </td>
>
>       <td>
>         ヘッダーセクションを非表示にします。デフォルト: `false`
>       </td>
>     </tr>
>   </tbody>
> </table>
>
> ***
>
> ### Action のプロップス
>
> アクションプロパティはユーザーの操作を処理し、ユーザーが変更を保存またはキャンセルしたときの動作を定義します。ライフサイクルフック (`onBefore`、`onAfter`) を使用して、アプリケーションのルーティングや分析機能と連携できます。
>
> <table>
>   <thead>
>     <tr>
>       <th>プロパティ</th>
>       <th>型</th>
>       <th>説明</th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>
>         `saveAction`
>       </td>
>
>       <td>
>         `ComponentAction<OrganizationPrivate>`
>       </td>
>
>       <td>
>         変更を保存するアクション。
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `cancelAction`
>       </td>
>
>       <td>
>         `ComponentAction<OrganizationPrivate>`
>       </td>
>
>       <td>
>         変更をキャンセルまたは破棄するアクション。
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `backButton`
>       </td>
>
>       <td>
>         `Object`
>       </td>
>
>       <td>
>         戻るボタンの設定。
>       </td>
>     </tr>
>   </tbody>
> </table>
>
> **saveAction**
>
> **型:** `ComponentAction<OrganizationPrivate>`
>
> ユーザーが organization の変更を送信した際の保存フローを制御します。保存の成功後に別の画面へ遷移させるには `onAfter` を使用します。
>
> **プロパティ:**
>
> * `disabled`—保存ボタンを無効にします (たとえば、別の操作の実行中) 。
> * `onBefore(data)`—保存処理の前に実行されます。保存を中止するには`false`を返します (たとえば、先に確認ダイアログを表示する場合) 。
> * `onAfter(data)`—organizationが正常に保存された後に実行されます。画面遷移やイベントの追跡に使用します。
>
> **よくあるパターン:**
>
> ```tsx wrap lines theme={null}
> // 保存後に前の画面へ戻る
> saveAction={{
>   onAfter: () => navigate("/organization"),
> }}
>
> // 保存前に確認ダイアログを表示する
> saveAction={{
>   onBefore: (org) => {
>     return confirm(`Save changes to "${org.display_name}"?`);
>   },
>   onAfter: () => navigate("/organization"),
> }}
>
> // 保存時に分析イベントを記録する
> saveAction={{
>   onAfter: (org) => {
>     analytics.track("Organization Updated", {
>       name: org.name,
>       displayName: org.display_name,
>     });
>     navigate("/organization");
>   },
> }}
> ```
>
> ***
>
> **cancelAction**
>
> **型:** `ComponentAction<OrganizationPrivate>`
>
> キャンセル/破棄のフローを制御します。破棄された変更の管理には、このアクションを使用します。
>
> **プロパティ:**
>
> * `disabled`—キャンセルボタンを無効にします
> * `onAfter(data)`—キャンセルが確定した後に実行されます。Formから移動する際に使用します。
>
> **例:**
>
> ```tsx wrap lines theme={null}
> <OrganizationDetailsEdit
>   cancelAction={{
>     onAfter: () => navigate("/organization"),
>   }}
> />
> ```
>
> ***
>
> **backButton**
>
> **型:** `{ icon?: LucideIcon; onClick: (e: MouseEvent) => void }`
>
> コンポーネントのヘッダーにある戻るボタンを設定します。organization の概要ページや前のページに戻る導線として使用します。
>
> **プロパティ:**
>
> * `icon`—カスタム Lucide アイコンコンポーネント (省略可、デフォルトは ArrowLeft)
> * `onClick`—ナビゲーション用のクリックハンドラー
>
> **例:**
>
> ```tsx wrap lines theme={null}
> import { ChevronLeft } from "lucide-react";
>
> <OrganizationDetailsEdit
>   backButton={{
>     icon: ChevronLeft,
>     onClick: () => navigate("/organization"),
>   }}
> />;
> ```
>
> ***
>
> ### カスタマイズ用プロパティ
>
> カスタマイズ用のプロップスを使えば、ソースコードを変更せずに、ブランド、ロケール、バリデーションの要件に合わせてコンポーネントを調整できます。
>
> <table>
>   <thead>
>     <tr>
>       <th>プロップ</th>
>       <th>型</th>
>       <th>説明</th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>
>         `schema`
>       </td>
>
>       <td>
>         `OrganizationDetailsEditSchemas`
>       </td>
>
>       <td>
>         フィールドのバリデーションルール。
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `customMessages`
>       </td>
>
>       <td>
>         `Partial<OrganizationDetailsEditMessages>`
>       </td>
>
>       <td>
>         i18n テキストの上書き。
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         `styling`
>       </td>
>
>       <td>
>         `ComponentStyling<OrganizationEditClasses>`
>       </td>
>
>       <td>
>         CSS 変数とクラスのオーバーライド。
>       </td>
>     </tr>
>   </tbody>
> </table>
>
> **スキーマ**
>
> organizationの詳細フィールドにカスタムのバリデーションルールを設定します。
>
> > [accordion] 利用可能なスキーマフィールド
> >
> > すべてのschemaフィールドでサポートされる項目: `regex`, `errorMessage`, `minLength`, `maxLength`, `required`
> >
> > **details.name**—組織の内部名
> > **details.displayName**—組織の表示名
> > **details.primaryColor**—プライマリブランドカラー (16進数形式)
> > **details.backgroundColor**—ページの背景色 (16進数形式)
> > **details.logoURL**—ロゴのURL
>
> ```tsx wrap lines theme={null}
> <OrganizationDetailsEdit
>   schema={{
>     details: {
>       name: {
>         minLength: 3,
>         maxLength: 50,
>         regex: /^[a-zA-Z0-9-_]+$/,
>         errorMessage: "Name must be alphanumeric with hyphens/underscores",
>       },
>       displayName: {
>         required: true,
>         maxLength: 100,
>       },
>       primaryColor: {
>         regex: /^#[0-9A-Fa-f]{6}$/,
>         errorMessage: "Enter a valid hex color (e.g., #FF5500)",
>       },
>       backgroundColor: {
>         regex: /^#[0-9A-Fa-f]{6}$/,
>         errorMessage: "Enter a valid hex color (e.g., #FFFFFF)",
>       },
>       logoURL: {
>         regex: /^https:\/\/.+/,
>         errorMessage: "Logo URL must use HTTPS",
>       },
>     },
>   }}
> />
> ```
>
> ***
>
> **customMessages**
>
> すべてのテキストと翻訳をカスタマイズします。すべてのフィールドは任意で、指定されていない場合はデフォルトが使用されます。
>
> > [accordion] 利用可能なメッセージ
> >
> > **header**—コンポーネントヘッダー
> >
> > * `title`, `back_button_text`
> >
> > **details.sections.settings**—設定セクション
> >
> > * `title`
> > * `fields.name`—`label`, `placeholder`, `helper_text`, `error`
> > * `fields.display_name`—`label`, `placeholder`, `helper_text`, `error`
> > * `fields.third_party_client_access`—`label`, `options.block.label`, `options.block.helper_text`, `options.allow.label`, `options.allow.helper_text`
> >
> > **details.sections.branding**—ブランディングセクション
> >
> > * `title`
> > * `fields.logo`—`label`, `helper_text`, `error`
> > * `fields.primary_color`—`label`, `helper_text`, `error`
> > * `fields.page_background_color`—`label`, `helper_text`, `error`
> >
> > **details**—Formのラベル
> >
> > * `unsaved_changes_text`, `submit_button_label`, `cancel_button_label`
> >
> > **notifications**—APIレスポンス
> >
> > * `save_organization_changes_message`, `organization_changes_error_message`, `organization_changes_error_message_generic`
>
> ```tsx wrap lines theme={null}
> <OrganizationDetailsEdit
>   customMessages={{
>     header: {
>       title: "Edit Organization",
>     },
>     details: {
>       sections: {
>         settings: {
>           fields: {
>             name: {
>               label: "Organization ID",
>               helper_text: "Internal identifier (cannot be changed after creation)",
>             },
>             display_name: {
>               label: "Organization Name",
>               placeholder: "Enter display name",
>             },
>             third_party_client_access: {
>               label: "Third-Party Application Access",
>               options: {
>                 block: {
>                   label: "Block Third-Party Access",
>                   helper_text: "Users can only authenticate through official apps",
>                 },
>                 allow: {
>                   label: "Allow Third-Party Access",
>                   helper_text: "Users can authenticate through external applications",
>                 },
>               },
>             },
>           },
>         },
>       },
>     },
>     save_organization_changes_message: "Organization updated successfully!",
>   }}
> />
> ```
>
> ***
>
> **スタイリング**
>
> CSS変数とクラスのオーバーライドで外観をカスタマイズできます。テーマに応じたスタイリングにも対応しています。
>
> > [accordion] 利用可能なスタイリングオプション
> >
> > **変数**—CSS カスタムプロパティ
> >
> > * `common`—すべてのテーマに適用
> > * `light`—ライトテーマのみ
> > * `dark`—ダークテーマのみ
> >
> > **クラス**—コンポーネントクラスのオーバーライド
> >
> > * `OrganizationDetails_Card`
> > * `OrganizationDetails_FormActions`
> > * `OrganizationDetails_SettingsDetails`
> > * `OrganizationDetails_BrandingDetails`
> > * `OrganizationDetails_ThirdPartyAccess`
>
> ```tsx wrap lines theme={null}
> <OrganizationDetailsEdit
>   styling={{
>     variables: {
>       common: {
>         "--font-size-title": "1.5rem",
>       },
>       light: {
>         "--color-primary": "#059669",
>       },
>     },
>     classes: {
>       "OrganizationDetails_Card": "shadow-lg rounded-xl p-6",
>     },
>   }}
> />
> ```
>
> ***
>
> ## 高度なカスタマイズ
>
> ### 利用可能なフック
>
> これらのフックは、UIを持たない基盤ロジックのみを提供します。Auth0 APIとの連携を活用しつつ、完全に独自のインターフェースを構築したい場合にご利用ください。
>
> <table>
>   <thead>
>     <tr>
>       <th>Hook</th>
>       <th>説明</th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>
>         `useOrganizationDetailsEdit`
>       </td>
>
>       <td>Organization データの取得・編集ロジック</td>
>     </tr>
>   </tbody>
> </table>
