Prevent sharing a group folder but allow its content to be shared

Hi,

I want to create a special folder, which is accessable to all group members. They shall be able to read, write and share its content (subfolders too), but they shall not be allowed to share the hole folder.

I tried to get this with group folders and special permissions, but found no way to automate that subfolders and files are shareable when the group folder isn’t it.

Example:
We have a group folder named “/global-share”. User “tony” creates a new subfolder named “share1”.

/global-share -> Tony is not allowed to share
/global-share/share1 -> Tony can create and share

Is there any way to get this working?

Ok, got it with a python watchdog script and ocs-commands on command line