mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
New optional, default-off settings sync a user's LDAP groups into Wekan Organizations and/or Teams during background sync: - LDAP_SYNC_ORGANIZATIONS (default false) — create/assign Organizations. - LDAP_SYNC_TEAMS (default false) — create/assign Teams. - LDAP_SYNC_ORGANIZATIONS_GROUPS / LDAP_SYNC_TEAMS_GROUPS — optional comma-separated allowlists restricting which of the user's groups become orgs/teams (empty = all of the user's groups). The user's groups are read with the existing LDAP_GROUP_FILTER_* machinery (getUserGroups now also runs when org/team sync is enabled). The create/assign runs in a new server-only app method (setUserOrgsTeamsFromLdap) that uses the real Org/Team models, finds an org/team by display name, creates it (active) if missing, and adds it to the user's membership. The assignment is add-only, so existing memberships — including manual ones — are never removed. Off by default, so existing deployments are unaffected. Thanks to xet7. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>