I have installed NextCloud on my webhosting, we are a group of 10 students. Having common projects, information to send each other how can we all have the same files regardless of user? I mean, when one of us uploads, deletes or edits a file/files, does it appear the same for all of us?
My recommendation to make this work flawlessly from now and forever is to use the first example:
Create a “serviceaccount” so you have a Nextcloud user not representing a real user. Call it for example:
Create a Nextcloud Group called “Project A”.
Login as the user “projectA”. Create a folder. Share it with the nextcloud group “Project A” with all rights. Then you dont have to do anything else than to change ProjectA password to something overly long and random and activate MFA for that user, and you never has to bother login as that user again.
All other users members of the group “Project A” will now have the shared folder in their files root, where they can create subfolders, set tags, create and modify anything.
I use this setup in a much more complex way.
I have a user called “Shares” (no that is not its actual name, but it could have been).
On this user I created a folder I shared with Admin group with full rights. Then as Admin I creates sub folders in that one shared folder, where I shares those subfolders with dedicated groups.
I COULD have solved this by creating a folder under the Admin user for this purpose instead of a dedicated user, but for security reasons I rather not use the builtin Admin user for anything. My own personal user is also in the Admin group, so this way I can manage the solution.