# Configure Directory Identity Sources and Sync Users

Canonical: https://www.nsecsoft.com/en/docs/ping64-identity-access/iam/users/directory-identity-source/

Language: en-US

Updated: 2026-11-29T12:34:01.712346Z

An identity source synchronizes directory users, groups and related membership into the unified identity directory. Saving, testing a connection, previewing and running synchronization are separate steps; none alone proves users have synchronized or obtained application access.

This guide covers AD and LDAP directories. Identity sources and directory configuration under AD domain management are separate management entries. Even when they use the same directory, confirm their purposes, connections and scopes separately; do not assume one entry configures the other.

To synchronize Active Directory organizational units to endpoint groups and associate directory computers with platform endpoints, see [Synchronize Directory Organization and Endpoint Groups](https://www.nsecsoft.com/en/docs/ping64-platform/platform/administration/directory-organization-sync/). The two functions may share a directory connection but are configured and run separately; identity synchronization does not mean endpoints have been grouped. Coordinate shared-connection changes with the responsible administrators and verify each function separately.

Use the links below for each task; read the relevant prerequisites and safety guidance before acting: [Before You Begin](https://www.nsecsoft.com/en/docs/ping64-identity-access/iam/users/directory-identity-source/#before-you-begin); [Configure and Test the Source](https://www.nsecsoft.com/en/docs/ping64-identity-access/iam/users/directory-identity-source/#configure-and-test-the-source); [Preview and Synchronize](https://www.nsecsoft.com/en/docs/ping64-identity-access/iam/users/directory-identity-source/#preview-and-synchronize); [Changes and Troubleshooting](https://www.nsecsoft.com/en/docs/ping64-identity-access/iam/users/directory-identity-source/#changes-and-troubleshooting).

## Before You Begin

-   Confirm the administrator has the required identity-source viewing, configuration, preview and synchronization permissions. Synchronization and deletion may require additional permissions.
-   Confirm server, port, certificate, bind account, synchronization root, user and group scope, and filters with the directory administrator. The bind account needs appropriate directory-read permissions; protect its password according to organizational rules.
-   Ensure the platform can reach the directory and the certificate chain and hostname pass validation for the chosen secure connection. Prepare a limited pilot, test accounts and a change recovery plan.
-   Coordinate with other owners before changing a shared directory connection. Narrowing the scope or filters may cause previously synchronized users or groups to stop matching and affect their status and business access. Assess the impact first rather than testing against the entire directory.

## Configure and Test the Source

**Important when changing scope:** The preview is based on objects read at that time and does not fully list previously synchronized users and groups omitted by new scopes or filters. A preview without disabled items does not prove that a real sync will disable none. Synchronization can disable previously synchronized users or groups and affect existing user sessions and application access. Before changing scope, compare the existing synchronized inventory, intended scope and critical accounts with the directory administrator, and prepare an approved recovery plan. Test on a small scope, then verify users, groups and business access separately after synchronization. Even if the directory user is re-enabled or returned to the synchronization scope, the unified identity account may remain disabled after synchronization. Under your authorization procedures, check the source, account status and application access. If enabling is necessary, an authorized administrator should assess and handle it, then verify sign-in with a pilot account; do not treat resynchronization as automatic restoration of access.

**Editing an existing identity source:** Saving this page can reset existing directory-field mappings and some synchronization rules, not just the visible fields. This may change a previous automatic synchronization schedule or handling of missing objects; a previously disabled source may also be re-enabled. If the source used special settings or the previous configuration cannot be confirmed, consult the directory administrator and technical support about the impact and recovery plan before saving, even for a name or connection change. When a change is necessary, verify the source status, synchronization schedule, and pilot users and groups after the controlled change before deciding whether to synchronize.

1.  **IAM > Identity Directory > Identity Sources**: In the identity directory of unified identity management, open identity sources and select **Add Identity Source**. Choose an AD or LDAP directory. An existing source's type cannot be switched directly in edit mode. The interface choices are **AD Domain Directory** and **LDAP Directory**. The **Enterprise WeChat** and **Feishu** options in this wizard are currently unavailable, so their identity sources cannot be created here. This does not describe the status of other platform integrations.
    
    **Changing source type during creation:** If you return to the type step and switch between the AD domain and LDAP directory types, the wizard resets the name to the selected type’s default and the port according to the current connection mode; the prior test must also be checked again. Return to the connection step, verify the name, mode and actual port, re-enter values if necessary, and test. When using an existing directory source, verify its connection separately; do not assume this page changed its port.
    
2.  Under **Configure connection**, enter a name and choose whether to create or maintain a directory connection, or use an existing directory source. Saving the first mode creates or updates the connection; the second uses the selected source's connection configuration. Coordinate before using or changing a shared connection. The respective options are **Create or Manage a Directory Connection** and **Use an Existing Directory Source**.
    
    **Choosing an existing directory source:** The identity source editor needs platform-settings read permission to load the existing directory-source list. It first retrieves at most 200 sources, ordered by creation time from newest to oldest, then displays those using LDAPS or StartTLS. Older sources or sources without an eligible secure connection may not appear in the selector. If the target is missing, check permissions, connection security, and existing sources with the directory and platform administrators; absence from the list does not prove the source does not exist, and is not by itself a reason to create a duplicate.
    
    **Shared connection and save failures:** When an identity source uses “Create or Manage a Directory Connection,” the connection may be updated before the identity source is saved. A later failure does not prove the connection remained unchanged; a failed creation may also have created a connection. With directory and platform administrators, inspect the actual identity source and directory connection separately, then check other consumers, including endpoint directory organization synchronization. Confirm impact and a recovery plan before retrying; do not repeatedly create entries or assume all changes rolled back.
    
3.  For a self-maintained connection, choose LDAPS or StartTLS and enter server, port, bind account and password; check certificate validation. When editing an existing connection, leaving the password blank retains it; enter a new password to replace it. For an existing directory source, verify the selected connection and its ownership. For a self-maintained connection, changing the bind account while leaving the password blank may retain the previous account’s password; the new account’s password is not obtained automatically. Confirm the credential with the directory administrator, enter the new account’s password if necessary, and retest the connection. The corresponding interface fields are **Directory Server**, **Port**, **Bind Account**, **Bind Account Password**, **Certificate Validation**, respectively. For a self-maintained connection, certificate validation offers **Validate certificate chain and hostname**. For an existing directory source, check its actual validation settings with its administrator.
    
    **Certificate trust for a reused connection:** An existing directory source using LDAPS or StartTLS does not necessarily validate certificates. If the source is configured to skip certificate validation and permits that setting, a connection test can succeed without establishing server identity or certificate trust. Before use, check the actual validation mode, server name and trust chain with the directory administrator; do not skip validation merely to pass a test.
    
    **Existing dedicated CA configuration:** When editing an identity source with a self-managed directory connection, the page does not offer a setting to retain the connection’s existing dedicated CA. Testing uses the current form configuration, and saving may remove that CA from the original connection and affect other features sharing it. If a dedicated CA is used or the trust configuration is uncertain, consult the directory administrator and support about certificate trust, shared consumers and recovery before changing anything. A test result alone does not establish whether the original configuration remains. After changes, check the connection and affected features separately, validate the certificate and hostname, and verify synchronization and business sign-in. When selecting an existing directory source instead, check its configuration separately; do not assume the same save behavior.
    
    **Changing connection mode and port:** When maintaining the directory connection in this wizard, switching to LDAPS sets the port to `636`, and switching to StartTLS sets it to `389`, replacing any previously entered custom port. Switching back does not restore that custom value. Confirm the actual port with the directory administrator, re-enter it if necessary, and test the current connection; a default port alone does not prove service availability.
    
    **Avoid whitespace-only input when editing a connection:** When maintaining an existing directory connection yourself, leave the password field genuinely empty to retain the existing password; do not enter spaces or other whitespace. With whitespace-only input, a test may succeed using the previous password, while saving may clear the credential stored for the directory connection and affect identity synchronization and other features using it. If the change was saved or the input is uncertain, stop expanding the change, check the connection and its consumers with the directory administrator, and restore and retest under your organization’s authorized procedure. Do not record passwords in tickets or logs.
    
4.  When maintaining the directory source connection in this wizard, check the synchronization root, user and group scopes and filters under **Sync scope**, and decide whether to enable **Business User Delegated Auth** according to the organization's authentication design. When using an existing directory source, this page only shows the selected source and does not offer those fields for editing. Confirm its scope, filters and delegated authentication with the directory administrator, and assess other users of the source before changing it. Do not assume synchronization alone requires delegated authentication.
    
    When maintaining the connection here, all five fields are required: **Sync Root**, **User Sync Scope**, **Group Sync Scope**, **User Filter Criteria**, **Group Filter Criteria**. Enter the first three as directory paths in the form `attribute=value,attribute=value`, for example `DC=example,DC=com`. Enter each filter as a complete parenthesized expression, for example `(objectClass=user)`. These examples illustrate format only, not recommended scopes or filters; confirm the actual values with the directory administrator. A directory path containing an escaped comma, such as `OU=Sales\,West,DC=example,DC=com`, may not pass this page’s format validation. Ask the directory administrator or technical support to confirm an available configuration; do not change the directory structure or synchronization scope solely to pass validation.
    
5.  Select **Test Config** and inspect the results. Correct failures and test again. Review the summary in the confirmation step and save. A successful test does not mean directory objects have synchronized or business login works.
    
    **Wait for the test before saving:** Wait for the test to finish and check each result. The page may still allow saving while a test is running or has failed; an enabled Save button does not mean the test passed. After changing the connection, credentials or synchronization scope, test again and review the current configuration before deciding whether to save. Neither testing nor saving replaces the saved-source preview and actual business verification.
    

## Preview and Synchronize

1.  Return to the source list, reopen the saved source and select **Preview Sync** in the confirmation step. A new source must first be saved. When editing, preview uses the saved configuration, not unsaved changes.
    
2.  Check connector status, additions, conflicts and other results. The page requests a preview of at most 200 objects; do not treat it as an item-by-item check of the entire directory. If conflicts appear, have an administrator confirm object mappings and the resolution before proceeding.
    
    **Users and groups in preview:** This page reads users first and uses the remaining object allowance for groups. If users reach the preview limit, no groups may be shown even when matching groups exist in the directory. Do not treat missing groups or their preview count as proof that they do not exist or as the complete synchronization result. Check the directory configuration and actual users, groups and memberships after synchronization.
    
    **Uncertain preview result:** After a repeated preview fails, the page may still show the previous summary. The displayed summary may also not match the current preview. Do not treat the displayed summary as current or run synchronization when its result cannot be confirmed. Reopening the saved identity source discards unsaved changes. First record anything that must be retained, then reopen it, check the saved configuration, start one preview and wait for the result before proceeding. Do not record passwords or other sensitive credentials. Contact an administrator or technical support if it remains uncertain.
    
3.  After checking the pilot scope, select **Sync** from the source's action menu. A message that synchronization was triggered means a task was submitted, not completed. If a task is already running, wait and inspect its status. The interface notices are **Sync triggered** and **A sync task is already running**.
    
4.  Review synchronization status and the last synchronization time. After the task finishes, check expected users and groups in user management. For missing objects, check the scope, filters, bind-account read permissions and available task results before deciding whether to adjust and synchronize again.
    
    The identity-source list shows synchronization status but does not provide synchronization-task error details. Preview shows only connector status and create and conflict summaries, not individual conflicting objects. To investigate a specific failure or conflict, compare the directory with synchronized users and groups. If the cause remains unclear, contact an administrator or technical support; do not determine the synchronization outcome from the summary alone.
    
5.  Synchronized users who need application access still require an application access scope and verified authentication integration. Use [user accounts and application access](https://www.nsecsoft.com/en/docs/ping64-identity-access/iam/users/user-accounts/) to check the specified user or actual group, application status and controlled login. Synchronization does not automatically grant access to every application.
    
    **Directory groups and application access:** OIDC group authorization checks the user’s management group, not synchronized directory group membership directly; a newly synchronized user initially has no management group. For group-based access, first check and set the management group under organizational requirements, then configure application access; approved users can also be selected directly. Assess changes beforehand and test allowed and disallowed accounts afterward. See [Manage Applications and Access Scope](https://www.nsecsoft.com/en/docs/ping64-identity-access/iam/applications/manage-applications/) for the complete guidance.
    
    OIDC group authorization does not automatically extend authorization for a parent management group to its subgroups. Check the user’s actual management group and, as needed, select that group or directly specify an approved user. Check all-users mode and other authorization conditions separately against the actual configuration.
    

**Synchronization status:** The list may show these states:

-   `queued`: The task is queued and waiting to run.
-   `running`: The task is running.
-   `retry_waiting`: The task failed and is waiting to retry; see the limits below.
-   `completed`: The task finished; still check for skipped or conflicting objects and verify actual business access.
-   `failed`: The task failed; check the configuration, connection and available error information, and contact an administrator or support if needed.

**Retry waiting and configuration changes:** After a sync failure, a task may enter `retry_waiting` and retry automatically later; timing depends on service availability and scheduling. A later attempt may read the identity source configuration then in effect rather than the configuration at the original trigger. Before changing the connection, scope or filters, check for waiting or running tasks and assess the impact with the directory administrator. Do not repeatedly trigger synchronization while the task state is unclear. Afterwards, verify actual users, groups and application access.

**Retry delay and attempts:** In some sync-failure handling paths, when the task has accumulated fewer than 3 attempts, it can run again no earlier than 5 minutes after the failure is recorded. The initial attempt also counts. If an attempt fails when the accumulated count is at least 3 and the failure state is recorded successfully, that task changes to `failed`. A scheduled sync may still create a separate task. Service interruption, scheduling delays or abnormal state can affect actual behavior. Check the current and any later tasks; do not infer that users were synchronized from the delay or count.

**Identity source list scope:** Each default list query returns at most 20 matching sources, ordered by creation time from newest to oldest, and the page has no pagination control. If an older source is not shown, search using a more specific name or description keyword and wait for the list to update; search results are still limited to 20. An absent item does not prove that the source does not exist. Verify its name and source before acting, and contact an administrator or support if it remains unclear.

**Search results and the current keyword:** When the keyword changes quickly or the page refreshes automatically, an earlier query can return after a later one, so the displayed list may not match the current keyword. The end of loading does not guarantee that every earlier query has finished. Before acting, verify the source name, origin and other identifying information. If results are inconsistent or uncertain, stop, reopen the list, keep the keyword unchanged and check again; contact an administrator or technical support if needed. Deletion has no further confirmation, so verify the target first.

After searching, check the sources currently displayed. If loading fails, the page may retain earlier results; check the network and viewing permissions, then reload and confirm success before acting. The synchronization status is based only on up to 100 recent synchronization task records requested for the current organization, not 100 records for each source. If no matching record is found, `-` is shown; this does not prove that the source has never synchronized or that no task is running. The last synchronization time and status come from different information. Check users and groups, task results and actual sign-in behavior together. If the situation remains unclear, contact an administrator or support rather than repeatedly starting synchronization based only on an empty status.

**Conflicts and empty results:** The preview page shows a summary such as status, new objects and conflicts; it does not provide conflict details or a linking action. If a username or email matches an existing user, or a group name conflicts with an existing group, synchronization skips the conflicting object rather than automatically linking it. Even when the task completes, verify critical users, groups and memberships. Consult the directory administrator and technical support about conflicts; do not assume matching names identify the same object. If the synchronization reads no objects at all, it updates no objects and does not disable missing ones. A completed task therefore does not mean existing users were cleared. Check the scope, filters and read permissions, confirm the expected data, and synchronize again.

**Directory group membership:** Identity synchronization matches the group’s member list to users read and successfully processed in that run; it does not recursively expand nested groups. Do not assume that users who belong through a subgroup, fall outside the current read scope, or were skipped because of conflicts have a synchronized membership in that group. Scope changes may make existing synchronized memberships inactive. Assess dependencies before changing scope, then check direct directory members, user and group synchronization scopes, conflicts and actual results. Check OIDC application access under the management-group rules described above.

## Changes and Troubleshooting

**Deleting an identity source:** Selecting “Delete” from the source row’s action menu submits the deletion request directly; the page does not show another confirmation dialog. Before selecting it, verify the target, assess the effects on synchronization, delegated authentication, and business access with the directory and application administrators, and check for ongoing synchronization and wait for its result. A deletion request does not guarantee that a task already in progress stops immediately. Deleting the source does not automatically delete synchronized users or groups or guarantee that existing sessions end immediately. To withdraw access, review and handle users, application grants, and sessions separately under the organization’s process, then verify the outcome.

-   **Change connection or scope:** Determine whether the connection is shared, assess existing users, groups and business access, then save, retest, preview and inspect synchronization results.
-   **Connection test fails:** Check address, port, network, certificate chain and hostname, bind account and password. Do not ignore certificate problems to pass a test.
-   **Preview shows conflicts:** Do not expand the scope based only on the preview. Check mappings between directory objects and existing users and agree on a resolution.
-   **Task triggered but objects absent:** Check completion, scope, filters and read permissions. Successful submission is not successful synchronization.
-   **Synchronized user cannot access an application:** Check user status, application access scope, authentication integration and actual login separately. Synchronization or delegated authentication is not the same as an application grant.
