Automatic User Lifecycle
Accounts that nobody has logged in to for a long time are deactivated by the automatic user lifecycle and deleted after a further period. This way only accounts that are still needed stay active, without anyone checking each account individually. Both steps only run once you switch them on with the toggles "Deactivate accounts after inactivity" and "Delete inactive accounts".
If an account carries an expiry date, OpenOlat deactivates it once the date is reached. You define the notifications for this on the same page in the area "Account expiration". Administrators and system administrators see the menu item. You configure both in the system administration under:
Administration > Life cycles > User
Account expiration and automatic user lifecycle
The configuration is held in two separate areas. The area "Account expiration" defines the notifications for accounts that reach the expiry date stored for them. Once an account reaches the date, OpenOlat deactivates it regardless of these notifications. This date is set per account, for example for guest lecturers or fixed-term project work. The area "Automatic user lifecycle" controls what happens to accounts that are no longer used over a longer period. What counts here is not a date but the last login.
Both processes have their own triggers and their own notifications. Whichever occurs first takes effect: an account is deactivated by its account expiration even when the configured number of days without a login is still far from being reached.
If the expiry date falls before the date of the automatic inactivation, the entry "Days until inactivation" in the "Account" tab therefore names the expiry date. It always shows the next date due, not only the days until the deactivation for lack of a login.
Each of the two areas states in its explanatory text the time at which OpenOlat runs the respective process daily.
An account passes through the states active, reactivated within the grace period, inactive and deleted. Which entries an account shows in which state is described on the page Manage user settings.
The three steps at a glance
Three steps end the use of an account: the account expiration, the deactivation and the deletion. For each step the table names the trigger, where you set it and the notification.
| Step | Trigger | Where you set it | Mail notification | Version |
|---|---|---|---|---|
| Account expiration | The expiry date stored for the account is reached. | You set the date per account in the user management: when creating it under User management > Create user or subsequently under User management > "Account of the person" > Tab "Account". The actions "Import users" and "Create temp. users" in the user management and the action "Change user settings" for selected accounts in the account search set it as well. |
Before and after the account expiration, in the area "Account expiration" | |
| Deactivation | The person does not log in for the configured number of days. | Automatically: toggle "Deactivate accounts after inactivity" and field "Num. of days before deactivation" in the system administration under Administration > Life cycles > User. Manually: status "Inactive" under User management > "Account of the person" > Tab "Account". |
Before and after the deactivation, in the area "Automatic user lifecycle" | |
| Deletion | The account stays inactive for the configured time after the deactivation. | Automatically: toggle "Delete inactive accounts" and field "Num. of days before deletion" in the system administration under Administration > Life cycles > User. Manually: action "Delete user" under User management > Delete user. |
Before and after the deletion, in the area "Automatic user lifecycle" |
Important
The area "Account expiration" only configures the notifications. There is no system-wide expiry date: each account carries the date individually.
For each step you formulate your own notification and define in the field "Num. of days before mail notification" how many days before the step OpenOlat sends it. These days are the reaction time. The deletion in the last step runs automatically if the toggle "Delete inactive accounts" is switched on. If it is switched off, you delete accounts exclusively manually.
Deactivation and reactivation
Whoever deactivates an account or looks for a deactivated account meets three words in the interface. They name the same thing from three angles:
| Word | What it names | Where it appears |
|---|---|---|
| deactivate, deactivation | The action: OpenOlat or a person sets the account to inactive. | Toggle "Deactivate accounts after inactivity", fields "Num. of days before deactivation" and "Mail before deactivation" |
| Inactivation | The point in time at which the action is or was carried out. | Columns "Days until inactivation" and "Inactivation date", filter "Inactivation" in the account search |
| Inactive | The status of the account after the deactivation. | Field "Status" in the "Account" tab, filter tab "Inactive" in the account search |
Deactivation sets the account status to "Inactive". The person can no longer log in. The account itself is fully retained. Password, profile, roles, group memberships and course data remain unchanged.
Reactivation sets the account status back to "Active". The person logs in with the existing password. A new password is not required.
You reactivate an account manually under:
User management > "Account of the person" > Tab "Account"
If the person logs in via Shibboleth, OpenOlat reactivates the inactive account automatically.
Grace period
frentix customers
The length of the grace period is part of the server configuration. For frentix customers, their customer advisor at frentix takes care of the change.
If the automatic deactivation is switched on, the person has time to log in after a reactivation. This time is the grace period: during this time the automatic user lifecycle does not deactivate the account again, even if the last login lies further back than configured. The "Account" tab shows the remaining days with the addition "(grace period)". If the person does not log in by the end of the grace period, the automatic user lifecycle runs as usual again: with notification and reaction time, if set, and then with the deactivation.
If you reactivate an account whose expiry date has passed, also change or remove the expiry date in the "Account" tab. Otherwise OpenOlat deactivates the account again in the next daily run, even during the grace period.
The grace period lasts 30 days by default and applies to all accounts. A change only takes effect after the next restart.
The grace period is not the same as the reaction time. The reaction time runs before a step, between the notification and the step. The grace period only starts with the reactivation.
Deletion and deleted accounts
The deactivation leaves the data in place. Only the deletion removes it: it deletes the password irrevocably and takes the person out of all groups and roles, see Delete user.
The record itself remains in anonymised form. OpenOlat replaces the login name with an ID of the form "del_884736" and sets the status to "Deleted". This is necessary because objects such as forum posts still refer to the account. You find the anonymised accounts under:
User management > Status > Deleted users
An account with the status "Active and not deletable" is excluded from deletion by the automatic user lifecycle. You set this status in the field "Status" under User management > "Account of the person" > Tab "Account".
Further information
Mentioned on this page
Manage user settings >
Delete user >
Further reading
Life cycles: Overview >
Account search >
Create user >
How do I manage life cycles of groups, courses or user accounts? >