LDAP only syncs 1000 users when should sync more
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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
Problem
After configuring the LDAP connector, JIRA only syncs 1000 users and it should sync more.
Diagnosis
The following messages may appear in the logs:
2015-08-28 15:09:54,942 atlassian-scheduler-quartz1.clustered_Worker-1 INFO [atlassian.crowd.directory.DbCachingRemoteChangeOperations] scanning [ 1000 ] users to add or update
2015-08-28 15:09:54,945 atlassian-scheduler-quartz1.clustered_Worker-1 INFO [atlassian.crowd.directory.DirectoryCacheImplUsingChangeOperations] scanned and compared [ 1000 ] users for update in DB cache in [ 6ms ]
2015-08-28 15:09:54,945 atlassian-scheduler-quartz1.clustered_Worker-1 INFO [atlassian.crowd.directory.DirectoryCacheImplUsingChangeOperations] synchronised [ 1000 ] users in [ 6ms ]
Cause
The LDAP connector is not paging the results. This usually limits the results to 1000.
Solution
Resolution
You will need to update the LDAP configuration:
Go to Admin > User Management > User Directories > User Directories
Find your LDAP directory and click Edit
Go to Advanced Settings and check the option Use Paged Results, setting it to more than 1000 results
Was this helpful?