I have a Nextcloud 15 installation with more than 1000 users and LDAP auth.
Each user receives some shared files every day, so very soon his root folder is becoming a mess.
Is there any way to automatically move some (not all with a config parameter) files to another folder?
I know it can be done via webdav, but you mus know the password of each user to do this.
Can I use cron for this task?
Or maybe it’s better to user PostLogin hook?
Please show me a way to control files that was shared to user without knowing user’s password.