Unable to clear LDAP users UUID's after removing LDAP server

Good afternoon,

I setup a new Nextcloud instance and linked it with my Active Directory LDAP server. After having linked the LDAP server, I noticed that users had UUID’s listed instead of their usernames: I then went back to the LDAP expert settings and changed the internal username attribute so that their usernames would show correctly:

I created a test user to see if the new settings would apply and they did:

However, the old users did not change. Since this is a new instance, there is no data to lose so I deleted the LDAP server, and attempted to show the user remnants in the terminal, but although the terminal shows that there are no remnants, as soon as I re-add the LDAP server, the old users with their old UUID’s reappear.

Does anyone know how this could be fixed?

This did the trick:

 sudo docker exec --user www-data -it nextcloud-aio-nextcloud php occ ldap:reset-user [UUID]