Different sharing rules based on folder location

We want to enforce different sharing rules based on file location. Users should be allowed to create files and folders in their personal home directory and share them only internally (with users or groups on the same Nextcloud instance). However, users must not be able to create any external shares (public links, email shares, or federated shares) from their home directory.

At the same time, users should be able to create and manage content inside a specific folder that is created and owned by an administrator (for example, a team or project folder), and only from this admin-created folder users should be allowed to create external shares, with password protection enforced.

In short:
• Home directory → internal sharing only, no external/public links
• Admin-created folder → internal + external sharing allowed

We are looking for a supported way in Nextcloud to apply sharing restrictions based on folder/location, not globally per user.

required details are available on pastbin