External user directory, Active Directory or LDAP is not syncing

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

    

Summary

The external user directory is not syncing periodically as expected. This may lead to login issues if there's an update in the external directory that was not reflected in the application.

Diagnosis

  • Scheduled sync job cannot be found within the scheduler_clustered_jobs table.

    SELECT * FROM scheduler_clustered_jobs WHERE job_id LIKE '%crowd%';

    If you have multiple user directories, make sure you locate the right entry using the directory id. In the following example, 2228225 is the directory id.

    com.atlassian.crowd.manager.directory.monitor.poller.DirectoryPollerManager.2228225

    You can use the SQL query below to find the directory id.

    SELECT * FROM cwd_directory WHERE directory_name = '<insert-directory-name-here>';
  • The last sync job is recorded hours/days ago. We can verify with the following SQL:

    SELECT * FROM scheduler_run_details WHERE job_id LIKE '%crowd%' ORDER BY start_time DESC LIMIT 10;


Cause

The user directory sync job has been deleted from the database accidentally, unexpected application restart or performance issue during its configuration may remove the scheduled job entry from the database (e.g. disabling user directory).

Solution

Disable and re-enable the user directory to rewrite the scheduled job entry into the database.

  1. Navigate to User directories
  2. Search for the problematic directory
  3. Disable and Enable it.


Last modified on Jul 17, 2020

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.