Joget Workflow v6 Released
Check out the latest Joget Workflow v6 for many new features and improvements in user experience (UX), app maintainability and performance.
This The Sync LDAP User Directory Manager allows one to import user objects from LDAP server on demand into Joget Workflow's built-in user directory manager to reduce its dependency on the LDAP server for improved performance. In this article, we will learn on how to automatically synchronize LDAP based on a schedule, eliminating the need to perform such action manually.
This guide requires the scheduler plugin in Joget Marketplace to perform functions based on a schedule. One of the features of the scheduler plugin is that it allows bean shell script to be executed at defined durations, in a form of CRON expressions.
First, download and import the plugin appended below, into your Joget installation.
After importing the plugin, add the scheduler userview element into your userview. Then, define the schedule frequency using CRON expression. Then select the bean shell option in "Plugin" and click on the "Configure Plugin" button, copy and paste the following bean shell code below. The code below is intended and must be used for Sync LDAP User Directory Manager (can be used along with Security Enhanced Directory Manager).