Nextcloud 27 not syncs large AD group

Nextcloud version 27.1.11
Docker version: nextcloud:27-apache
Redis:latest (7.2)
The issue you are facing:

We have over 1000 users in AD catalog.
And NC have troubles syncing “Domain users” group.
Randomly some users drop out from that group in NC on every sync.

Is it some limit of Community version or it can be fixed?

Normally, there should be no limitation in the community version. First step to debug normally is to check the logs, if you can find some obvious errors.

Further down the road, there are a few larger setups among community users, but it is probably a bit harder to fix problems and get specific feedback on configuration large-scale systems.
What is limited are push notifications: Push Notifications - Nextcloud
and you get some warning about support: Change wrong info - This community release of Nextcloud is unsupported and push notifications are limited. · Issue #37322 · nextcloud/server · GitHub

And the NC27 branch went out of support last month, so I’d consider an upgrade soon.

There is no such thing as a community edition in terms of the code base. It’s all the same.

We have over 1000 users in AD catalog.
And NC have troubles syncing “Domain users” group.
Randomly some users drop out from that group in NC on every sync.

Can you me more specific? What have you already tried and/or looked at? For example:

  • What appears in your Nextcloud log during these events?
  • Have you temporarily adjusted your loglevel from 2 to 1 or 0 to get more details? There should be some clues from the LDAP integration; users aren’t just dropped silently generally
  • Did this start happening at a certain point you can pinpoint (e.g. after a particular upgrade)? Or has it always been this way?
  • Maybe post your ldap config occ ldap:show-config
  • Do these users appear anywhere via the occ commands like occ ldap:show-remnants?[1]

[1] The LDAP remnants table? e.g. LDAP user cleanup — Nextcloud latest Administration Manual latest documentation