Перейти до основного вмісту

Налаштування сторінки облікового запису

Цей посібник пояснює, як налаштувати елементи облікового запису організації. Елементи облікового запису — це поля на сторінці облікового запису та на сторінці редагування користувача для кожного учасника організації. Для кожного поля ви визначаєте, чи воно видиме, хто може його переглядати та хто може редагувати.


Результати навчання​

  • Показувати або приховувати поля сторінки облікового запису.
  • Обмежувати коло осіб, які можуть переглядати та редагувати поле.
  • Групувати поля у вкладки та вибирати макет вкладок.

Що вам знадобиться​

  • Доступ адміністратора до організації в адмін-консолі Casdoor

Про елементи облікового запису​

Кожен елемент облікового запису має такі налаштування:

ColumnValuesОпис
Ім'яA field from the list of account itemsThe field
ВидимийOn or offWhether the field appears on the account page
View rulePublic, Self, AdminWho can see the value of the field
Modify ruleSelf, Admin, ImmutableWho can change the value of the field
ВкладкаTextTab under which the field appears on the user edit page

Правила мають наступне значення:

RuleWho can view or change the field
PublicView rule only. Everyone can see the field of any user
SelfEach user, for their own account only. Casdoor matches by user ID, or by organization and username if the ID is missing
AdminAdministrators of the organization only
ImmutableModify rule only. Nobody can change the field on the account page
примітка

Правила перегляду та правила зміни застосовуються до окремих полів профілю користувача. Вони відокремлені від дозволів, які контролюють доступ до додатків та ресурсів.

Налаштування елементів облікового запису​

  1. В адмін-консолі Casdoor перейдіть до User Management > Organizations та відкрийте організацію.

  2. Прокрутіть до розділу Account items.

    Account items of an organization

  3. Щоб показати або приховати поле, перемкніть перемикач Visible.

    Visible switch of an account item

  4. Щоб обмежити поле, виберіть View rule та Modify rule.

    View rule and Modify rule of an account item

  5. Збережіть організацію.

Типові сценарії використання​

ПолеView RuleModify RuleUse Case
NamePublicSelfEveryone can see names, but users can only change their own
EmailSelfSelfUsers can only see and change their own email
PhoneAdminAdminOnly admins can see and change phone numbers (for privacy)
Display namePublicSelfPublic profile name visible to all
PasswordSelfSelfUsers can only change their own password
порада

Використовуйте правило Admin для чутливих полів, які повинні керуватися лише адміністраторами, таких як номери телефонів, адреси та внутрішні ідентифікатори.

Групування полів у вкладки​

Елементи з однаковим значенням Tab відображаються разом під однією вкладкою на сторінці редагування користувача. Елементи без значення вкладки відображаються першими, поза вкладками.

Наприклад, щоб створити вкладку Contact з електронною поштою, номером телефону та місцезнаходженням:

  1. Відкрийте організацію та прокрутіть до розділу Account items.
  2. Встановіть значення Tab Contact у рядках Email, Phone та Location.
  3. Збережіть організацію. Тепер на сторінці редагування користувача є вкладка Contact з цими трьома полями.

Вибір макету вкладок​

Account menu на сторінці редагування організації визначає, як відображаються вкладки:

OptionLayout
Horizontal (default)Tabs across the top of the page
VerticalA menu on the left side of the page. Use it for organizations with many tabs

Список елементів облікового запису​

FieldОпис
ОрганізаціяThe organization this user belongs to.
IDThe 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).
Посвідчення особи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).
Елементи MFAThe list of individual MFA methods enrolled by the user.
Облікові дані WebAuthnRegistered 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.
Розпізнавання обличчяEnrolled face recognition data used for biometric login.
Облікові записи MFAExternal 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.
Білий список IPIP addresses or CIDR ranges from which this user is allowed to sign in. Admin-only.
SessionsБраузери та пристрої, на яких користувач увійшов у систему, з кнопкою Logout для інших сесій. Видно лише самому користувачу. Див. Завершення власних сесій користувачем.

Примусове оновлення пароля​

Коли параметр Need update password увімкнено для користувача, Casdoor не видає токен або код при наступному вході. Це стосується входу за паролем та зворотних викликів постачальників OAuth 2.0 і SAML. Натомість Casdoor перенаправляє користувача на сторінку /update-password/<application-name> або на /update-password, коли користувач входить в адмін-консоль Casdoor.

Сторінка має заголовок You need to update your password та містить такі поля:

  • Old Password: Приховано, якщо в обліковому записі немає пароля, а також для адміністраторів.
  • New Password та Re-enter New.

Користувач натискає кнопку Set Password. Застосовуються правила складності пароля (password complexity) та історії паролів організації. Поки пароль не буде змінено, будь-яка сторінка адмін-консолі Casdoor перенаправлятиме користувача на цю сторінку.

Після зміни перерваний процес входу продовжується: Casdoor повторно входить користувача без додаткових запитів і повертається до потоку OAuth 2.0 додатка. Якщо такого потоку не було, користувач переходить до адмін-консолі Casdoor.

Шляхи входу, де неможливо відобразити сторінку, наприклад надання пароля OAuth 2.0 або прив'язка до вбудованого сервера LDAP, відхиляють користувача, доки пароль не буде змінено. Дивіться Де застосовується MFA.

Див. також​