Experimental. The Entra ID (Graph, app-only) pull is implemented and tested; the range of tenant shapes, group structures and permission configurations it might meet is not fully covered. Google Workspace pull sync requires a service-account integration and follows in a minor release — the runner and the plan/apply pipeline are already provider-agnostic.
Setting it up
Directory sync with Entra ID — the step-by-step guide: the one Graph permission to add, the admin consent it needs, and the dry run to read before anything applies.
What it does
On a schedule, reads your directory and makes WordPress match it:
- Create — new directory users provisioned with role mapping
- Update — attribute changes applied per the conflict policy
- Disable — directory-disabled or removed accounts disabled here
| Key | Default |
|---|---|
dirsync.enabled | false |
dirsync.schedule | twicedaily |
dirsync.conflict | directory or wp |
dirsync.auto_offboard | false |
dirsync.offboard_steps | all reversible-safe steps |
The conflict policy is the setting that matters
directory means the directory wins: a display name or role changed in WordPress is overwritten on the next run.
wp means local changes stick.
Choose deliberately. directory is correct if the directory is genuinely authoritative, and infuriating if people make legitimate local adjustments that get reverted twice a day with no explanation.
Automatic offboarding
With dirsync.auto_offboard on, an account disabled or removed in the directory triggers the full offboarding workflow rather than just being disabled.
This is the most consequential switch in the module. Somebody removed from Entra ID at 09:00 has their WordPress content reassigned and their credentials revoked by the next sync, with nobody having decided that on the day. That is often exactly right — it is also exactly wrong if your directory is not the authority on WordPress access, or if a directory administrator makes a mistake. dirsync.offboard_steps defaults to the reversible-safe steps for this reason. Read it before widening it.
Plan and apply
Runs produce a plan before applying it, and the run history records what each sync did.
Review a plan before the first real run. A misconfigured group filter that would disable two hundred accounts is visible in a plan and invisible in a schedule.
What it does not do
It is a pull. Nothing is written back to your directory — WordPress is never the source of truth here.
It does not handle authentication. That is single sign-on, a separate module, and the two are usually deployed together.
Groups
Directory groups map to groups, so membership follows the directory and group-targeted policy follows membership.
What gets logged
Every run, with counts and outcomes; every create, update and disable individually; and itxuo_directory_user_disabled fires for wiring your own response.