Old Users Cleanup Job
Версия 2.1 от superadmin на 25.09.2026, 14:06
Cleanup Settings
- The DN or name of the user to bind to the LDAP when running the job.
- The password of the user to bind to the LDAP when running the job.
- XWiki.XWikiGuest The XWiki user to replace deleted users as page creator and last author. This user does not have to exist.
- XWiki.superadmin 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 deleted users should be replaced as the creator of pages.
- Да Set this option if deleted users should be replaced as the last author of pages.
- Да Set this option if deleted users should be replaced as the last content author of pages.
- Да Set this option if deleted users should be replaced as the creator of comments.
- Да Set this option if you want the job to make no actual changes but only log any actions that would be performed.
- Нет Set this option if you want the users to be disabled rather than deleted.
- The LDAP attribute that conveys whether an user is active or not. E.g. for Active Directory, the attribute is 'userAccountControl'.
- The value of the activeAttribute that determines that an user is inactive/disabled. E.g. in Active Directory, the value for the 'userAccountControl' attribute that says an user is inactive is '514'.
- 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.
- Set the list of XWiki users that should not be processed during the execution of the job.
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)