How to prevent users from creating folders in the root directory

Hello everyone, there is a need to make it so that users cannot create files and folders in the nextcloud root directory and at the same time can create files in folders I have already created. How is it possible to implement this?

You should take a look at the guests App


ernolf

Also you can set the quota to 0 MB and use the app Group folders. Mostly a better solution than the app Guests.