Skip to content

Customizing: User Properties

frentix customers

For frentix customers, their customer advisor at frentix takes care of this configuration.

Which details OpenOlat keeps about a person, what these details are called and where they appear is defined by system administrators for the whole instance. In one place you decide which data your organisation collects and which fields persons fill in in their profile, when an account is created or during self-registration. You will find the settings in the system administration under:
Administration > Customizing > User Properties

The page has three tabs: "Properties" for the individual details, "Contexts" for the places where the details appear, and "Reset" for the whole configuration at once.

What is a property?

Every field a person fills in in their profile is a property: a single detail about a person, for example "Date of birth" or "Organizational unit/study group". A property is either active or deactivated for the whole instance.

The "Properties" tab lists all properties with their technical name and their label. There you assign a property to a group and adapt its label per language in the column "Translate". The group decides under which heading the field appears in the profile: fields of the group "account" appear there under "Personal data".

What is a context?

The same property appears in many places in OpenOlat: in the profile, as a column in the table of the user management, in the form for creating an account, when importing users, in the self-registration and in the data of the REST API. Each of these places is a context. A context has its own selection of properties and defines for each property whether it is mandatory there. This way a detail can appear in the user management without the self-registration asking for it.

The "Contexts" tab lists all contexts with their technical name and a description. The profile, for example, is called "org.olat.user.ProfileFormController" there.

Whether a detail appears in a place is therefore decided twice: at the property, which must be active, and at the context, which must use the property.

Activate and deactivate a property

If your organisation does not need a detail for a while, deactivate the property instead of removing it from every context one by one. To do so, switch it off in the "Properties" tab in the column "Active". Before deactivating, OpenOlat asks "Deactivate?". You activate a property without a confirmation question.

OpenOlat hides a deactivated property in all contexts, that is in the profile, in the tables and in the forms. The values persons have already entered stay stored. The properties "First name", "Last name", "E-mail", "E-mail address changed" and "Block E-Mail delivery" cannot be deactivated, their switch in the column "Active" cannot be changed.

When you deactivate a property, its configuration in the contexts is kept. If you activate it again, it appears in the same places as before and with the same settings for "Mandatory", "Admin only" and "User: readonly". This way you hide, for example, the date of birth for one semester and show it again unchanged afterwards.

If a property is in no context when you activate it, OpenOlat adds it to the contexts in which the system configuration provides it, with their settings. Properties that were already deactivated before the update to Release 21.1.1 are in no context, and neither are properties that "Default" or "Minimal" in the "Reset" tab has deactivated.

View and edit contexts

Where a detail appears is shown in the "Properties" tab in the column "Contexts": for each property the number says how many contexts use it. A click on the number opens the "Contexts" tab, filtered on this property. For a deactivated property the number still shows the stored contexts, but it cannot be clicked.

In the "Contexts" tab you choose in the filter "Property" either "All active properties" or a single active property. The entries show the technical name and the label, for example "birthDay · Date of birth". The column "Property count" counts only the active properties in each context.

Filter Property set to birthDay, the list shows only the contexts with this property, top right the Add context button for further ones

If the list is filtered on a property and not all contexts use it yet, the "Add context" button appears at the top right. With it you add the property to further contexts without opening each one. The "Add context" dialog lists all contexts that do not use the property yet. With the search field you narrow down the list by name or description. A click on "Add" in a row adds the property to this context immediately and opens its "edit Context" dialog.

Search field narrows down the contexts without the property, with Add in a row OpenOlat adds the property there

In the "edit Context" dialog you define which properties this context shows (column "include") and in which order. You also set for each property the settings "Mandatory", "Admin only" and "User: readonly". You open the same dialog with "Edit" in a row of the list. Deactivated properties do not appear in it.

Reset the configuration

After many individual changes it is often no longer clear where a setting comes from. With the "Reset" tab you return to a fixed state. The drop-down "Load Preset:" offers two presets:

  • Default restores the system configuration, that is the state of a new installation.
  • Minimal uses the same contexts, but only with the properties "Username", "First name", "Last name" and "E-mail". This preset suits an instance that is to keep as few details about persons as possible.

OpenOlat computes both from the system configuration of the installed version. They therefore take into account every property and every context of this version, also after an update.

A reset replaces all settings of the tabs "Properties" and "Contexts": which properties are active, their groups and, in every context, the properties used, their order and the settings "Mandatory", "Admin only" and "User: readonly". Your own changes are lost. Labels you have adapted in the column "Translate" are kept.

Attention

OpenOlat loads the selected preset immediately after "OK", without asking again. The step cannot be undone. Note down your settings beforehand if you want to restore them later.

Below the drop-down a note sums up both presets. After "OK" OpenOlat reports "Predefined config loaded...".

Drop-down Load Preset with the entry Default, below it the note on Default and Minimal and that your own changes are lost

Skype ID, Xing, LinkedIn and ICQ

The properties "Skype ID", "Xing", "LinkedIn" and "ICQ" are deactivated in the system configuration. On a new installation and after "Default" they therefore appear neither in the profile nor in the user management. If your organisation needs one of them, activate it in the "Properties" tab in the column "Active".

On an existing installation it depends on whether the settings of this page have ever been saved. If they have never been changed, the four properties are deactivated after the update as well. If they have been changed before, the four properties stay as they are saved until you load "Default". OpenOlat never deletes values that persons have already entered.

To the top of the page ^

Further information

Further reading
Customizing: Overview >
Email Settings >
Manage user settings >
Self-registration >

To the top of the page ^