Skip to content
Lang Toggle

Beem LDAP CSV Deployment Guide

Estimated reading time for this article: 20 minutes

This Article provides a comprehensive guide for enterprise administrators to export user data as a UTF-8 encoded CSV file from a local Microsoft Active Directory (AD) or openLDAP directory, for subsequent data synchronization between Beem Portal and the on-premises directory.

System Requirements

  1. Microsoft AD Environment (Windows)
  • Runtime: Windows PowerShell 5.1 or later (Windows Terminal recommended). Must run as Domain Admin / AD Read-Only Administrator.
  • Component Dependency: Remote Server Administration Tools (RSAT) – AD PowerShell Module must be installed.
    • Verification: Run Get-Command Get-ADUser in PowerShell. If command details are returned, the module is installed.
    • If "command not found" appears: Install RSAT: Active Directory Domain Services and Lightweight Directory Services Tools via Settings → Apps → Optional Features → Add a feature.
  • Permissions & Network: The machine running the script must reach the AD Domain Controller; the account must have permission to read user attributes under the target OU.
  1. OpenLDAP Environment (Linux / macOS)
  • Runtime: Terminal, with network connectivity to the openLDAP server.
  • Tool Dependencies:
    • ldapsearch:
      • Linux (CentOS/RHEL): yum install openldap-clients
      • Linux (Ubuntu/Debian): apt install ldap-utils
      • macOS: brew install openldap
    • Python 3.6 or later: verify with python3 --version.
  • Permissions: The binding account (-D parameter) must have read-only access to user attributes in the target LDAP directory tree.

Workflow for Microsoft AD Data Export (Windows PowerShell)

  1. Get to PowerShell

    • Press Win + X, select Windows PowerShell (Admin) (Windows 11: Terminal (Admin)).
    • Confirm the UAC prompt.
    • Recommend: Run cd C:\Users\Administrator\Desktop to set the output directory to the Desktop for easy file access.
  2. Copy and Paste the script from Beem Portal to PowerShell

    • Back in Beem Portal. Select the Microsoft AD tab to differentiate the data structure.
    • Copy the Script Command
    • Paste the script to PowerShell and replace the following parameters with the organization's own directory parameter.
Configuration ItemScript LocationExample ValueDescription
Search Base-SearchBase "OU=TestAgents,DC=alpha,DC=ad"OU=Sales,DC=company,DC=comReplace with your actual AD Organizational Unit (OU) path to export the entire domain, use DC=company,DC=com.
Output File Path/NameExport-Csv aaa.csv ...C:\Users\Admin\Desktop\ad_users.csvUse an absolute path; file extension must be .csv.
  • Press enter, run the script
  • Success: No red errors, returns prompt.
  1. Upload the exported CSV to Beem Portal
  • Locate the csv file at the configured path.
  • Upload the file back to Beem Portal and click Import.

Workflow for openLDAP Data Export (Linux / macOS Terminal)

  1. Open Terminal & Verify Dependencies

    • Launch Terminal: Linux (Ctrl+Alt+T), macOS (Launchpad → Terminal).

    • Verify tools:

      • ldapsearch -V
      • python3 --version
  2. Copy and Paste the script from Beem Portal to Linux / Terminal

    • Back in Beem Portal. Select the OpenLDAP tab to differentiate the data structure.
    • Copy the Script Command
    • Paste the script to Linux / Terminal and replace the following parameters with the organization's own directory parameter.
Configuration ItemScript LocationExample ValueDescription
LDAP Server URL-H ldap://10.209.204.200:389ldap://192.168.1.100:389Replace with your openLDAP IP:Port.
Bind Account DN-D "cn=admin,dc=alpha,dc=ad"cn=ldap_reader,dc=company,dc=comUse a read-only bind DN; avoid admin accounts.
Search Base DN-b "dc=alpha,dc=ad"ou=HR,dc=company,dc=comBase DN where target users are stored.
Output File Path/Nameopen("export_users.csv", ...)~/Desktop/openldap_users.csvUse an absolute path; file extension must be .csv.
  • Input the password. (It would be automatically set as invisible.) Press enter to run.
  • Success: No red errors, returns prompt.
  1. Upload the exported CSV to Beem Portal
  • Locate the csv file at the configured path.
  • Upload the file back to Beem Portal and click Import.