Skip to main content

User sync overview

User sync maintains departments, users, and memberships from an enterprise directory.

User sync maintains departments, users, and memberships from an enterprise directory. It finds users by external user ID and takes ownership of their mapped profiles after a successful write. The source policy governs joiners, department moves, and leavers. Sign-in methods are configured separately in Authentication.

Choose a source

Open Users → User sync and click Add data source.
SourceDirectory integration
DingTalkRead enterprise users and departments; see DingTalk user sync
FeishuRead the enterprise organization; see Feishu user sync
Windows ADRead the Windows domain directory; see Windows AD user sync
OpenLDAPRead entries through directory mappings; see OpenLDAP user sync
Microsoft Entra IDRead a tenant with app credentials; see Microsoft Entra ID user sync
SCIMReceive user changes pushed by the identity platform; see SCIM user sync

Decide the scope, identity, and leaver policy

Before configuration, decide which departments and users to include, which stable field identifies each user, and whether leavers are deactivated or deleted. The source app must be able to read the complete intended hierarchy, including necessary parent departments. An incomplete source scope can hide valid users or break the department hierarchy. For staged onboarding, use the QwenWork specified-department-and-descendants policy while retaining complete source read access. Only one sync source can be active at a time. Check existing identity associations before switching. Pull-source setup has credentials, field mappings, and sync policy steps. Test and next checks the connection. For a new source, success also saves the current draft. DingTalk, Feishu, and Entra test token exchange; AD and OpenLDAP test directory address and binding. The test does not enumerate users or departments or prove directory permissions and field correctness. SCIM instead receives requests at its Base URL.
Admin console: directory sources and synchronization records.

Run and verify sync

  1. Set the scope. DingTalk, Feishu, and Entra use all or specified departments; AD and OpenLDAP use Base DN and user or department filters. Pull sources support manual runs or one daily run at the selected Beijing time.
  2. Save the source and confirm activation.
  3. Filter Sync records by source, trigger, result, and date, then open details.
  4. Check user, department, membership, and seat changes separately. For partial success, inspect each failed object and correct its cause before running again.
  5. In Users, inspect a joiner, a department move, and a leaver to confirm departments, status, and seats.

Change scope or leaver handling

Edit the source and recheck mappings and deletion policy. Reducing scope may remove previously synced users from it. A deletion threshold records an alert; sync continues under the configured policy without waiting for manual approval. Review the result.

Associate existing users

Sync matches non-empty external user IDs globally. It does not claim existing users by account, email, phone, or employee number, or combine the source ID with the external user ID for matching. Each identity field is unique among users that have not been deleted, including inactive users.
SituationResult
External ID matches a current userUpdate that QID's mapped fields; successful writing transfers management to this source
No ID match and no identity conflictCreate a user after normal validation
No ID match but an identity value is occupiedFail this item; correct the existing user's external ID before retrying
ID matches, but an identity field belongs to another userFail the item without changing its profile, source, or seat
For manually added or imported users, set the correct external ID on the existing record first. Preserve the original user instead of creating another record with the same email.

Understand field ownership

These locks apply when a user's management source is the currently enabled source. Other-source users remain editable according to permissions.
FieldsConsole, import-update, and general API rules
Name, email, account, phone, external user ID, employee numberOwned by the source; removing a mapping does not unlock them
Departments and statusLocked when mapped; editable after removing those mappings
While sync is enabled, manual creation, invitations, new-user imports, and deletion are disabled organization-wide. Import updates remains available under these locks.

Add or change a mapping

  1. Choose an unused QwenWork target from Add mapping in the relevant section.
  2. Check its preset source. The target stays fixed; member sources use supported fields, while department mappings usually use presets.
  3. Keep required mappings. Optional rows can be removed and added again. Opening an existing configuration does not rewrite saved values.
  4. Save, run sync, and compare the target QID and profile values.
A new mapped field is source-managed immediately. Removing department or status mappings restores their editing, without clearing previous values. The six identity fields stay locked. Changing the external-ID mapping may match another user or create a new QID; confirm associations first. Outstanding tasks using an old configuration revision fail and must be rerun.

Deleted users and source changes

Deletion preserves old history but does not restore the old QID or profile. Account, email, phone, and employee-number values become reusable.
Pull-source resultHandling
ID matches a current userUpdate the existing QID; successful writing transfers ownership to the current source
ID matches only deleted historyCreate a new user and QID, record a creation, and associate the external ID with the new user
Current identity values conflict with another userFail this item; correct source data or mappings before retrying
A new account does not inherit roles, passwords, user groups, administrator permissions, seats, or departments. Seats follow the current new-user policy; departments follow the new sync result. SSO uses its own automatic-creation switch. SCIM cannot update a deleted User resource; the identity platform must create a new User, which receives a new QID. Neither restores the previous QID. When switching from source A to B, B can update a current user using the same external ID, retaining its QID and taking ownership. A deleted user is recreated by the long-term source. Deleting and recreating a source assigns a new source ID.

Handle failed records

A conflict rejects that user's whole profile, source, and relationship update while independent valid users may succeed. Inspect the failed object and field in Sync records. Upstream read failures, incomplete scope, or same-batch identity conflicts prevent uncertain missing users from being treated as leavers. Correct the source, rerun, and verify the QID and final values in Users.

Source tutorials

  • Users / User sync / DingTalk user sync
  • Users / User sync / Feishu user sync
  • Users / User sync / Windows AD user sync
  • Users / User sync / OpenLDAP user sync
  • Users / User sync / Microsoft Entra ID user sync
  • Users / User sync / SCIM user sync
Return to: Users / Users overview.