LDAP User cleanup

Dear oC Community,

we have a Windows network including a big domain with hundrets of users and an owncloud server.
To sync the correct users we created a group that is specified to be synced in owncloud.

What happens when a user that uploaded (and or shared) files to the owncloud will be deleted or removed from the sync group?

The central question is: Will the user files / folders / share be deleted? Do we have to create a clean up job that deletes all entries from the database and file system?

We are using 10.1.0 and ubuntu 18.04

Best
Norman

Hi Norman,
It’s not that easy to find but if you know what to look for then you can find some information in the docs about this. The keyword is “syncing users”:
https://doc.owncloud.com/server/admin_manual/configuration/user/user_auth_ldap.html#syncing-users

This links to the following articles with even more information on how to set this up as a cron job:
https://doc.owncloud.com/server/admin_manual/configuration/server/occ_command.html#syncing-user-accounts

It is generally recommended to run the command as follows:

occ user:sync -m disable -r -n "OCA\User_LDAP\User_Proxy"
2 Likes