Feature needed: Automatically share all files with every group the user is in

I have 5 different users which are in 5 different user groups. One of them is in also in the other 5 groups and
would need to automatically see all files and folder that are uploaded from the users. So I’d need an option that shares everything with the user’s group without the user having the option to turn that off.
Is there a way to accomplish that?

If you are willing to get your hands dirty, you can achieve this custom feature by writing an app. In the app, listen to file post-write event and in the callback of this event create the related share.

Also, you need to https://github.com/owncloud/core/blob/18831fa81167a9a876d0bb0d06c5106460714743/lib/private/Share20/Manager.php#L1126 listen share.beforeDelete event and prevent the deletion of the app-created shares.

1 Like