Package io.meeds.portal.identity.job
Class UserAutomaticDeactivationJob
java.lang.Object
io.meeds.portal.identity.job.UserAutomaticDeactivationJob
Scheduled job responsible for automatically deactivating inactive users.
This job periodically scans enabled user accounts and automatically disables those that have not logged into the platform for a configurable number of days.
The inactivity threshold is configurable using the property
social.user.inactive.period.days (default value: 180 days).
The job execution schedule is configurable using the cron expression
social.UserAutomaticDeactivationJob.expression. By default, the job
is executed once per day.
Users deactivated by this job are flagged as automatically deactivated in order to distinguish them from users manually disabled by administrators.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UserAutomaticDeactivationJob
public UserAutomaticDeactivationJob()
-
-
Method Details
-
deactivateUsersInactive
@Scheduled(cron="${social.UserAutomaticDeactivationJob.expression:0 15 23 ? * *}") public void deactivateUsersInactive()
-