Passer au contenu principal

Personnaliser la page de compte

Ce guide explique comment configurer les éléments de compte d'une organisation. Les éléments de compte sont les champs présents sur la page du compte et la page de modification de l'utilisateur pour chaque membre de l'organisation. Pour chaque champ, vous décidez s'il est visible, qui peut le consulter et qui peut le modifier.


Objectifs d'apprentissage​

  • Afficher ou masquer des champs de la page du compte.
  • Restreindre qui peut consulter et modifier un champ.
  • Regrouper les champs dans des onglets et choisir la disposition des onglets.

Prérequis​

  • Accès administrateur à l'organisation dans la console d'administration Casdoor

À propos des éléments de compte​

Chaque élément de compte dispose des paramètres suivants :

ColumnValuesDescription
NomA field from the list of account itemsThe field
VisibleOn 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
OngletTextTab under which the field appears on the user edit page

Les règles ont la signification suivante :

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
note

Les règles de consultation et les règles de modification s'appliquent aux champs individuels du profil utilisateur. Elles sont distinctes des autorisations, qui contrôlent l'accès aux applications et aux ressources.

Configurer les éléments de compte​

  1. Dans la console d'administration Casdoor, accédez à User Management > Organizations et ouvrez l'organisation.

  2. Faites défiler jusqu'à Account items.

    Account items of an organization

  3. Pour afficher ou masquer un champ, activez ou désactivez Visible.

    Visible switch of an account item

  4. Pour restreindre un champ, sélectionnez une View rule et une Modify rule.

    View rule and Modify rule of an account item

  5. Enregistrez l'organisation.

Modèles courants​

ChampView 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
conseil

Utilisez la règle Admin pour les champs sensibles que seuls les administrateurs doivent gérer, tels que les numéros de téléphone, les adresses et les identifiants internes.

Regrouper les champs dans des onglets​

Les éléments ayant la même valeur Tab apparaissent ensemble sous un seul onglet de la page de modification de l'utilisateur. Les éléments sans valeur d'onglet apparaissent en premier, hors des onglets.

Par exemple, pour créer un onglet Contact contenant l'adresse e-mail, le numéro de téléphone et l'emplacement :

  1. Ouvrez l'organisation et faites défiler jusqu'à Account items.
  2. Définissez Tab sur Contact dans les lignes Email, Phone et Location.
  3. Enregistrez l'organisation. La page de modification de l'utilisateur contient désormais un onglet Contact avec les trois champs.

Choisir la disposition des onglets​

Account menu sur la page de modification de l'organisation définit la manière dont les onglets sont affichés :

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

Liste des éléments de compte​

FieldDescription
OrganisationThe organization this user belongs to.
IDThe user's globally unique identifier (UUID).
NomThe user's unique login username within the organization.
Nom d'affichageThe name shown publicly on the user's profile.
PrénomThe user's given name.
Nom de familleThe user's family name.
AvatarThe user's profile picture.
Type d'utilisateurThe category of the user account (e.g. normal user, service account).
Mot de passeThe user's login password.
EmailThe user's email address, used for login and notifications.
TéléphoneThe user's phone number, used for login and SMS verification.
Code du paysThe phone country/calling code (e.g. +1 for the US), used together with Phone.
Pays/RégionThe user's country or region.
LocalisationThe user's city or address.
AffiliationThe user's company, school, or other organizational affiliation.
TitreThe user's job title or position.
Type de carte d'identitéThe type of government-issued identity document (e.g. passport, national ID card, driver's license).
Pièce d'identitéThe document number of the user's identity document.
Informations de la carte d'identitéAdditional identity document details (e.g. issue date, expiry). Only visible to the user themselves.
Nom completThe user's verified legal name. Locked and cannot be changed after identity verification is completed.
Vérification d'identitéControls visibility of and access to the Verify identity button on the profile page.
Page d'accueilThe URL of the user's personal website or online profile.
BioA short biography or personal description.
TagOne or more custom labels attached to the user, used for filtering or grouping.
Demande d'inscriptionThe application the user originally signed up through.
Type d'enregistrementThe method used to register the account (e.g. email, phone, OAuth).
Source d'enregistrementThe channel or provider through which the user registered (e.g. Google, GitHub, invite link).
RôlesThe roles assigned to this user, which determine access within Casdoor.
PermissionsThe permissions explicitly granted to this user.
Groupes - InfobulleThe user groups this user belongs to.
Connexions tiercesLinked third-party OAuth accounts (e.g. Google, GitHub, WeChat) used for social login.
PropriétésCustom key-value pairs for storing additional application-specific data about the user.
SoldeThe user's account balance, used for built-in payment or credit features.
Solde (crédits)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.
Devise du soldeThe currency unit for the user's balance (e.g. USD, CNY).
PanierItems added to the user's shopping cart (for e-commerce integrations).
Score utilisateurA point score assigned to the user, typically by application logic.
Score de karmaA reputation score reflecting the user's activity or community standing.
RankingThe user's rank among all users, derived from score or other metrics.
LangueThe user's preferred display language for the Casdoor UI.
Est administrateurWhether the user has organization administrator privileges.
Est interditWhether the user account is banned; forbidden users cannot log in.
Est suppriméWhether the user account has been soft-deleted (marked as deleted but retained in the database).
Authentification multi-facteurThe user's MFA settings and enrolled second-factor methods (e.g. TOTP app, SMS).
Éléments MFA - InfobulleThe list of individual MFA methods enrolled by the user.
Identifiants WebAuthnRegistered passkeys or hardware security keys (WebAuthn/FIDO2) for passwordless login.
Dernière modification du mot de passeTimestamp of the user's most recent password change. Admin-only.
Comptes gérésSub-accounts or delegated accounts that this user can manage on behalf of others.
Authentification Face IDEnrolled face recognition data used for biometric login.
Comptes MFAExternal accounts linked specifically for multi-factor authentication purposes.
Besoin de mettre à jour le mot de passeWhether the user is required to change their password at next login. Admin-only. See Forced password update.
Liste blanche IPIP addresses or CIDR ranges from which this user is allowed to sign in. Admin-only.
SessionsLes navigateurs et appareils où l'utilisateur est connecté, avec Logout pour les autres sessions. Seul l'utilisateur voit cela. Voir Permettre aux utilisateurs de déconnecter leurs propres sessions.

Mise à jour forcée du mot de passe​

Lorsque Need update password est activé pour un utilisateur, Casdoor n'émet aucun jeton ni code lors de la prochaine connexion. Cela s'applique à la connexion par mot de passe ainsi qu'aux callbacks des fournisseurs OAuth 2.0 et SAML. À la place, Casdoor redirige l'utilisateur vers la page /update-password/<application-name>, ou vers /update-password lorsque l'utilisateur se connecte à la console d'administration Casdoor.

La page est intitulée You need to update your password et contient ces champs :

  • Old Password : Masqué lorsque le compte n'a pas de mot de passe, et pour les administrateurs.
  • New Password et Re-enter New.

L'utilisateur clique sur Set Password. Les règles de complexité du mot de passe et d'historique des mots de passe de l'organisation s'appliquent. Tant que le mot de passe n'est pas modifié, chaque page de la console d'administration Casdoor redirige vers cette page.

Après la modification, la connexion interrompue reprend : Casdoor reconnecte l'utilisateur sans invite supplémentaire et retourne au flux OAuth 2.0 de l'application. S'il n'y avait pas de tel flux, l'utilisateur accède à la console d'administration Casdoor.

Les chemins de connexion ne pouvant pas afficher cette page, tels que le grant de mot de passe OAuth 2.0 et la liaison au serveur LDAP intégré, refusent l'utilisateur tant que le mot de passe n'est pas modifié. Voir Où MFA s'applique.

Voir aussi​