Force an LDAP sync from occ

Nextcloud version (eg, 20.0.5): 21.0.4
Operating system and version (eg, Ubuntu 20.04): Debian 9
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4
PHP version (eg, 7.4): 7.4

The issue you are facing:

Hey everyone. Just got a question. I am looking for a way to automate an LDAP refresh. Basically the problem I face is that when groups and users are added to the LDAP database, they do not show in nextcloud until I click the button shown below.
Screenshot 2021-08-25 at 15.42.30

I am looking for a way to automate this using the occ command line interface. I had a look around but I can’t seem to find anything. Has anyone got any ideas that might help me out?

John :slight_smile: