Skip to main content

Windows AD user sync

Windows AD sync reads domain users and organization information through LDAP (Lightweight Directory Access Protocol).

Windows AD sync reads domain users and organization information through LDAP (Lightweight Directory Access Protocol). Confirm directory reachability and prepare a service account with read access.

Prepare the connection

SettingExample or requirement
Server URLldaps://ad.example.com:636
Base DNSearch root, such as OU=Employees,DC=example,DC=com
Bind DNService account, such as CN=qwenwork-sync,OU=Service Accounts,DC=example,DC=com
PasswordPassword for that service account
TLSMatch the directory's encryption and certificate configuration
A distinguished name (DN) identifies a directory object. Base DN defines the search scope; Bind DN identifies the account used to connect. Prefer LDAPS with a valid certificate, matching hostname, and a chain trusted by the sync service. The account needs read access to users, departments, and parents; domain-administrator rights are unnecessary. Ensure network connectivity from the sync service.

Connect the directory

  1. In Users → User sync, add Windows AD and start setup.
  2. Enter Server URL, Base DN, Bind DN, password, and TLS settings.
  3. Optionally test the connection, then use Test and next. Success opens mappings and saves a new-source draft; edits still need the final save. The test checks address, binding, and TLS, without proving user attributes or final sync results.
Admin console: Windows AD connection and search-root settings.

Check AD attributes

Preset attributeQwenWork field
User objectGUIDStable external user ID
displayName, mail, telephoneNumberName, email, phone
employeeID, department, userAccountControlEmployee number, department-related field, status
Department objectGUID, nameExternal department ID and name
Check actual values on a test user. Membership is built from the nearest parent organizational unit of the user's DN. A department-name string does not generate a hierarchy. Membership is written when department mappings are retained. Check enabled and disabled accounts because userAccountControl combines several flags. Use supported member attributes; targets are fixed and department mappings use presets. Select an account according to the enterprise sign-in convention, rather than treating the displayed objectGUID as a manually entered login name. Add unused targets through Add mapping. Required IDs and names cannot be removed; optional rows can be restored.
Admin console: check source attributes and their QwenWork targets.

Verify joiners, moves, and leavers

  1. Set user and department filters under Base DN and the new-user seat option.
  2. Begin with manual sync and a leaver policy consistent with retention needs. Set deletion alerts.
  3. Save, enable Windows AD, and run sync.
  4. Check user creation, department creation, and the hierarchy under the search root.
  5. Test profile updates, an organizational-unit move, and account disabling. After each run, confirm the original QID and the expected seat handling.

Troubleshooting

  • Timeout: check DNS, routing, firewall, and directory ports.
  • Certificate error: check the chain, validity, and Server URL hostname; repair and retest.
  • Bind failure: check Bind DN, password, account lock, and expiry.
  • No users: check Base DN and read permissions.
  • Incorrect deactivation: stop sync, inspect the status attribute and leaver policy, then retry.
After service-account password changes, update and test the same source. Check users excluded by a narrower Base DN or scope before saving that change.

Connect existing users

Before syncing, make the source external user ID agree with the existing QwenWork user. Sync looks up users by that ID only. Account, email, phone, and employee number are checked for conflicts; an unmatched ID with an occupied identity value fails. A successful update keeps the QID and changes the management source to this source. While it is enabled, the source owns name, email, account, phone, external ID, and employee number. Department and status are locked when mapped. If a deleted user reappears in a pull directory, a new user and QID are created from the current source data and counted as a creation. The external ID points to the new user; old history remains. Roles, passwords, user groups, administrator permissions, seats, and departments are not inherited. Default seats follow the current source policy. See Users / User sync / User sync overview for mapping changes, source switching, and recreation rules. Return to: Users / User sync / User sync overview.