I import my users from an Active Directory. The AD user only can read (not write). Now I want to delete invalid users (580), which didn’t exist in the AD an more.
I know the command “sudo -u www-data php occ user:delete invalid_user”, but I don’t want to do I 580 times by hand. Is the any way to do it automatic?
André
Nextcloud version: 11
Operating system and version: Ubuntu 16.04
Apache: 2.4.18
PHP version: 7
With the help of a short script you can probably pass the output of occ ldap:show-remnants to occ user:delete username. I don’t know this by heart and would need to search and test myself.