This concerns Nextcloud version 12.
I have been searching through the documentation and forums but have not found an answer to my question.
Is there a means to create a folder and share it with a group via a script, either using occ or some REST API via curl?
I need to automate the following process (some of the steps are clear how to achieve with occ but not all):
- Create a user U.
- Create a group G.
- Create a folder F owned by user U.
- Share the folder F with group G, with read-write privileges.
Thanks.