Restrict sharing to certain user groups

Hi

I am using Nextcloud v 27.1.5.

Is it possible to allow only certain groups to use the sharing functionality? I can exclude groups - but is it possible to do the opposite - only allow sharing for groups that have been allowed to share?