Accessible only with permits

I am new using this system, I have 2 groups of 5 users each. How can I configure nextcloud? so that each user only sees the folders or files that are allowed to see or edit

example:

index (user 1, user 3)
-gas (user1, user 7)
–invoice (user 4, user 2)

The problem is that when creating a new folder they appreciate all the users. I want to make when creating a folder or file must be granted viewing or editing permissions.

regards

By default, each user can only see his or her files. If you want others to see your files, or use the admin user to provide a folder where many people can work with at the same time, you can share files and folders to users or groups. Keep in mind, that each user is set up with a number of default files (which are copied into the personal folder).