Set Custom Restrictions on Certain User Groups

We are wanting to set certain restrictions on members of specific groups of users. We would like to be able to have the following:

  • Members of group cannot delete files or folders
  • Members of group cannot share files or folders
  • Set default time for shared links to be available for just this group

Any pointers, greatly appreciated. I see you can set default time for shared links but this is for the whole user set. We’d like it for specific groups.

Thanks.

Nextcloud version: 12.0.4 (Aiming to upgrade very soon)
Operating system and version: CentOS 7

You can always share without “delete” rights.

There is an option for " exclude groups from sharing"

The third one would require programming, you are welcome to contribute!

1 Like

Sorry for the super delayed reply.

Thanks for this, that’s perfect on the first two.

I’ll take a look into the third option, would it just be PHP changes needed to edit what groups have access to the share, or would it require any database changes do you think?

For the third option you would need an option to put expiry of shares for internal shares and you would need to make it available on a group basis. Not rocket science, and only PHP as far as I can tell …

Thanks, that’s what I was thinking. I’ve built a secondary test server to do some testing on so will give it a go on that. Will report back if I can get it working well enough.