How to assign permissions while creating a folder?

Hello,

How can I assign permissions (not sharing) to a folder when I create it?

Also, how can I restrict what people can see? for example, I created a group called Clients, I need these clients to ONLY have the option to see what I created for them, not everything.

Thanks.

Not sure if I got you right…

How can I assign permissions (not sharing) to a folder when I create it?

From my understanding sharing is assigning permissions to user and/or user groups. In a first step create a user group, e.g. “Clients”. Now assign the users to this user group “Clients” whom you want that they have access to. Now create the content and assign this file(s) to user group “Clients” by using the sharing option.

Maybe this helps as well:
https://docs.nextcloud.com/server/16/user_manual/contents.html

What I tried to say was that I created a user and put it in the Clients group, I shared something with this user and for some reason when the user logs in to NextCloud the client is able to see everything in it (I believe delete anything too) which should not happen, the users should only be able to see what we share with them, not everything in Nextcloud.

Does that make more sense?