OdooWiki OCA HUB

LDAP Populate

users_ldap_populate folder_open OCA/server-auth open_in_new
Tools License: AGPL-3

This module extends the functionality of auth_ldap by adding functionality so that users can be populated from a LDAP server.

auto_awesome What this module does

AI-generated from the code · Odoo 17.0

Adds a Populate button to LDAP server configurations so administrators can create Odoo users from the directory in one click, and optionally deactivate users who no longer exist in LDAP.

This module extends the LDAP configuration screen (the res.company.ldap model) with a new "Populate user database" section and a Populate button.

  • Clicking Populate opens a small wizard that immediately runs the import and reports how many users were created and how many were deactivated.
  • Users are created from the LDAP directory using the login attribute found in the LDAP filter; existing users are reused, and archived users found in LDAP are reactivated.
  • A "Deactivate unknown users" option can be enabled. When it is, users that are not found in any configured LDAP server are archived (deactivated).
  • A "Users never to deactivate" list lets administrators protect specific users from this automatic deactivation; the administrator running the action is protected by default.
  • The deactivation check queries each LDAP configuration for every unknown user, so only users truly absent from all directories are deactivated.

Everything happens from the LDAP configuration form; there are no new menus. The module touches res.company.ldap, res.users and adds the transient wizard res.company.ldap.populate_wizard, which is restricted to the Settings administrator group.

Depends on

auth_ldap
Models and fields (2)
  • res.company.ldap · extends an existing modelno_deactivate_user_ids (Users never to deactivate), deactivate_unknown_users (Deactivate unknown users)
  • res.company.ldap.populate_wizard · new modelname, ldap_id, users_created (Number of users created), users_deactivated (Number of users deactivated)

Text generated by AI (DeepSeek) from reading the Odoo 17.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 5 confirmed, 4 with no information of 9 versions.

Sources · Odoo 14.0

Confirmed on 2026-11-03 in branch 14.0 of OCA/server-auth.

terminal Installation and usage

OCA documentation · Odoo 17.0

To use this module, you need to:

  • Go to 'Settings' -\> 'General Settings'
  • In the LDAP category click on or add a LDAP configuration
  • In the pop-up enter all the LDAP settings
  • Click the populate button
  • A new pop-up will notify you of how many users are added

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.