Sync | Synchronize users from Azure AD to WordPress

Choose your user synchronization trigger

Steps in this Topic

Perform the following steps to configure the trigger that starts a new instance of a WPO365 job to synchronize users from Azure AD to WordPress.

Select one of the following trigger e.g.

  • Run manually When choosing this option, you can start the synchronization of users by clicking the Save + Run now button at the bottom of the job’s form. When synchronization is running, should should not navigate away from the page and instead monitor progress as shown under Last / Current run.
  • External link (start only) If checked, an option External link to start user synchronization will appear just below the Trigger section. You can use the link presented to start user synchronization using an external scheduler. This is especially useful if you want to run the job more than once per day, which is not possible if you select WordPress Cron or when WordPress Cron is not performing.
  • External link (start and continue) Checking this option will first add a new option External link to start user synchronization just below the Trigger section (see previous bullet). Additionally a second new option External link to process subsequent batches will be added. Invoking this link from an external scheduler instructs WPO365 to continue with the next batch of users, in the context of the current job. This link must be called at regular intervals, preferrably once every minute and that continiously, or else a job may never complete. Please note that when you trigger WPO365 User Synchronization using an external schedule for start and to continue, no WP Cron Jobs will be created.
  • WordPress Cron Allows you to define a schedule e.g. once per day at a specific time.

Please note Since WordPress CRON jobs are not running continuously, you must either configure WPO365 user synchronization during those times that your website enjoys regular traffic or you must implement measures to ensure that it is running almost continuously. See https://docs.wpo365.com/article/135-hooking-wp-cron-into-a-task-scheduling-service for tips on how to achieve that.