LDAP only syncs 1000 users when should sync more
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
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.
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