アカウントページの customization
このガイドでは、組織のアカウントアイテムの設定方法について説明します。アカウントアイテムとは、組織のすべてのメンバーのアカウントページおよびユーザー編集ページのフィールドです。各フィールドについて、表示するか、誰が閲覧できるか、誰が編集できるかを決定します。
学習目標
- アカウントページのフィールドを表示または非表示にする。
- フィールドの閲覧および編集者を制限する。
- フィールドをタブにグループ化し、タブのレイアウトを選択する。
必要なもの
- Casdoor 管理コンソールでの組織への管理者アクセス
アカウント項目について
各アカウント項目には以下の設定があります:
| Column | Values | 説明 |
|---|---|---|
| 名前 | A field from the list of account items | The field |
| 表示 | On or off | Whether the field appears on the account page |
| View rule | Public, Self, Admin | Who can see the value of the field |
| Modify rule | Self, Admin, Immutable | Who can change the value of the field |
| タブ | Text | Tab under which the field appears on the user edit page |
ルールの意味は次のとおりです:
| Rule | Who can view or change the field |
|---|---|
Public | View rule only. Everyone can see the field of any user |
Self | Each user, for their own account only. Casdoor matches by user ID, or by organization and username if the ID is missing |
Admin | Administrators of the organization only |
Immutable | Modify rule only. Nobody can change the field on the account page |
View rules と Modify rules はユーザープロファイルの個々のフィールドに適用されます。これらは、アプリケーションやリソースへのアクセスを制御する permissions とは別物です。
アカウント項目の設定
-
Casdoor 管理コンソールで、User Management > Organizations に移動し、組織を開きます。
-
Account items までスクロールします。

-
フィールドを表示または非表示にするには、Visible を切り替えます。

-
フィールドを制限するには、View rule と Modify rule を選択します。

-
組織を保存します。
一般的なパターン
| フィールド | View Rule | Modify Rule | Use Case |
|---|---|---|---|
| Name | Public | Self | Everyone can see names, but users can only change their own |
| Self | Self | Users can only see and change their own email | |
| Phone | Admin | Admin | Only admins can see and change phone numbers (for privacy) |
| Display name | Public | Self | Public profile name visible to all |
| Password | Self | Self | Users can only change their own password |
電話番号、住所、内部識別子など、管理者のみが管理すべき機密性の高いフィールドには Admin ルールを使用します。
フィールドをタブにグループ化する
同じ Tab 値を持つ項目は、ユーザー編集ページの1つのタブの下にまとめて表示されます。タブ値がない項目は最初に、タブの外に表示されます。
例えば、メールアドレス、電話番号、所在地を含む Contact タブを作成する場合:
- 組織を開き、Account items までスクロールします。
- Email、Phone、Location の行で Tab を
Contactに設定します。 - 組織を保存します。ユーザー編集ページに3つのフィールドを含む
Contactタブが表示されるようになります。
タブレイアウトの選択
組織編集ページの Account menu で、タブの表示方法を設定します:
| Option | Layout |
|---|---|
| Horizontal (default) | Tabs across the top of the page |
| Vertical | A menu on the left side of the page. Use it for organizations with many tabs |
アカウント項目のリスト
| Field | 説明 |
|---|---|
組織 | The organization this user belongs to. |
ID | The user's globally unique identifier (UUID). |
名前 | The user's unique login username within the organization. |
表示名 | The name shown publicly on the user's profile. |
名前 | The user's given name. |
苗字 | The user's family name. |
アバター | The user's profile picture. |
ユーザータイプ | The category of the user account (e.g. normal user, service account). |
パスワード | The user's login password. |
メールアドレス | The user's email address, used for login and notifications. |
電話 | The user's phone number, used for login and SMS verification. |
国番号 | The phone country/calling code (e.g. +1 for the US), used together with Phone. |
国/地域 | The user's country or region. |
場所 | The user's city or address. |
所属 | The user's company, school, or other organizational affiliation. |
タイトル | The user's job title or position. |
身分証タイプ | The type of government-issued identity document (e.g. passport, national ID card, driver's license). |
IDカード | The document number of the user's identity document. |
身分証情報 | Additional identity document details (e.g. issue date, expiry). Only visible to the user themselves. |
本名 | The user's verified legal name. Locked and cannot be changed after identity verification is completed. |
本人確認 | Controls visibility of and access to the Verify identity button on the profile page. |
ホームページ | The URL of the user's personal website or online profile. |
バイオ | A short biography or personal description. |
タグ | One or more custom labels attached to the user, used for filtering or grouping. |
サインアップ申請 | The application the user originally signed up through. |
登録方法 | The method used to register the account (e.g. email, phone, OAuth). |
登録元 | The channel or provider through which the user registered (e.g. Google, GitHub, invite link). |
役割 | The roles assigned to this user, which determine access within Casdoor. |
権限 | The permissions explicitly granted to this user. |
グループ - ツールチップ | The user groups this user belongs to. |
サードパーティログイン | Linked third-party OAuth accounts (e.g. Google, GitHub, WeChat) used for social login. |
プロパティ | Custom key-value pairs for storing additional application-specific data about the user. |
残高 | The user's account balance, used for built-in payment or credit features. |
残高クレジット | Minimum balance floor for the user's account. Must be ≤ 0. Set to 0 (default) to prevent the balance from going negative. Set to a negative value (e.g. -50) to allow the balance to drop as low as that amount before transactions are blocked. |
残高通貨 | The currency unit for the user's balance (e.g. USD, CNY). |
カート | Items added to the user's shopping cart (for e-commerce integrations). |
スコア | A point score assigned to the user, typically by application logic. |
カルマ | A reputation score reflecting the user's activity or community standing. |
ランキング | The user's rank among all users, derived from score or other metrics. |
言語 | The user's preferred display language for the Casdoor UI. |
管理者かどうか | Whether the user has organization administrator privileges. |
禁止されているかどうか | Whether the user account is banned; forbidden users cannot log in. |
削除されているかどうか | Whether the user account has been soft-deleted (marked as deleted but retained in the database). |
多要素認証 | The user's MFA settings and enrolled second-factor methods (e.g. TOTP app, SMS). |
MFA項目 - ツールチップ | The list of individual MFA methods enrolled by the user. |
WebAuthnの資格情報 | Registered passkeys or hardware security keys (WebAuthn/FIDO2) for passwordless login. |
最終パスワード変更時刻 | Timestamp of the user's most recent password change. Admin-only. |
管理アカウント | Sub-accounts or delegated accounts that this user can manage on behalf of others. |
顔認証(Face ID) | Enrolled face recognition data used for biometric login. |
MFAアカウント | External accounts linked specifically for multi-factor authentication purposes. |
パスワード更新が必要 | Whether the user is required to change their password at next login. Admin-only. See Forced password update. |
IPホワイトリスト | IP addresses or CIDR ranges from which this user is allowed to sign in. Admin-only. |
パスワード更新の強制
ユーザーに対して Need update password がオンになっている場合、次回のサインイン時に Casdoor はトークンやコードを発行しません。これはパスワードによるサインイン、および OAuth 2.0 や SAML プロバイダーのコールバックにも適用されます。代わりに、Casdoor はユーザーを /update-password/<application-name> ページ、または Casdoor 管理コンソールにサインインしている場合は /update-password ページへ送信します。
このページのタイトルは You need to update your password であり、次のフィールドがあります:
- Old Password: アカウントにパスワードがない場合、および管理者の場合は非表示になります。
- New Password と Re-enter New。
ユーザーが Set Password をクリックします。組織のパスワード複雑性とパスワード履歴ルールが適用されます。パスワードが変更されるまで、Casdoor 管理コンソールのすべてのページがこのページにリダイレクトされます。
変更後、中断されたサインイン処理が再開されます: Casdoor はプロンプトなしでユーザーを再サインインさせ、アプリケーションの OAuth 2.0 フローに戻ります。そのようなフローがなかった場合、ユーザーは Casdoor 管理コンソールに移動します。
OAuth 2.0 パスワードグラントや組み込み LDAP サーバーへのバインドなど、このページを表示できないサインインパスでは、パスワードが変更されるまでユーザーを拒否します。MFA が適用される場所を参照してください。