Old Users Cleanup Job
Версия 1.1 от superadmin на 25.09.2026 02:01
Cleanup Settings
- The XWiki user to replace deleted users as page creator and last author, if the deleted users had the "Program"-right. Choose an existing (but possibly disabled) account that has the "Program"-right, too. Usually choosing XWiki.superadmin is a viable option.
- Set this option if the users that are part of the excluded groups OR are not part of the included groups should be deleted/disabled.
Scheduler Job Settings
- Remove profile data for users no longer in LDAP
- 0 12 1 * * ?
- Скрипт содержит код, который будет выполнен во время запуска задания планировщиком. Он должен быть написан на языке Groovy. Доступ к API XWiki осуществляется посредством предопределенных переменных *xwiki* и *context*.
- def oldUserCleanup = xwiki.parseGroovyFromPage('Scheduler.LDAP.OldUserCleanupJobCode')
oldUserCleanup.cleanup(xcontext)