账户自定义
介绍
在组织中,您可以自定义用户的 账户项。 这包括每个项目是否是 可见 及其 视图规则 和 修改规则。
当您自定义一个组织中的账户项目时,此配置将在该组织所有成员的主页上生效。
如何定制?
帐户项目有四个属性:
| Column Name | Selectable Value | Description |
|---|---|---|
| Name | - | Account item name. |
| Visible | True / False | Select whether this account item is visible on the user home page. |
| ViewRule | Rule Items | Select a rule to use when viewing the account item. Controls who can view this field. |
| ModifyRule | 规则项 | 选择用于修改帐户项目的规则。 Controls who can edit this field. |
Understanding View Rule and Modify Rule
View rule and Modify rule provide field-level permission control for user account items:
- View rule: Determines who can see the value of this account field (e.g., email, phone number, address)
- Modify rule: Determines who can change the value of this account field
This is different from the broader Permission feature, which controls access to applications and resources. View rule and Modify rule specifically control access to individual user profile fields.
Configuration Steps
要自定义账户项目,请遵循以下步骤:
Navigate to Organizations in the Casdoor sidebar
Click on your organization to open the Edit Organization page
Scroll down to the Account items section

Casdoor 提供简单的操作来配置帐户项目:
a. Set item visibility
Control whether this account item is shown on the user home page:

b. Set viewing and modifying rules
Configure who can view and modify each field:

Available Rules
There are 3 rules available for both View rule and Modify rule:
- Public: Everyone has permission. Any user can view/modify this field for any user.
- Self: Each user has their own permission. Users can only view/modify their own field values.
- Admin: The administrator has permission. Only organization administrators can view/modify this field for users.
Example Use Cases
Here are some common configuration patterns:
| Field | View Rule | Modify Rule | Use Case |
|---|---|---|---|
| 姓名 | Public | Self | Everyone can see names, but users can only change their own |
| 邮件 | Self | Self | Users can only see and change their own email |
| 手机号 | Admin | Admin | Only admins can see and change phone numbers (for privacy) |
| 显示名称 | Public | Self | Public profile name visible to all |
| 密码 | Self | Self | Users can only change their own password |
Use Admin rules for sensitive fields like phone numbers, addresses, or internal identifiers that should only be managed by administrators.
These field-level permissions work in conjunction with the broader Permission system in Casdoor. The Permission system controls access to applications and API resources, while View rule and Modify rule control access to specific user profile fields within the Edit Organization page configuration.
账户列表
以下是帐户项目中的所有字段。 关于描述详情,您可以查看 用户。
组织IDNameDisplay name头像用户类型PasswordEmailPhone国家/地区城市附属机构职务个人主页自我介绍标签注册应用第三方登录属性是否为管理员是否为全局管理员是否被禁用是否已删除