Automatically create shared folder for new user

9.0.x

#1

I’m looking into ownCloud for sharing files with many users.
When I create a new user account, I want it to automatically create a folder with the same name as the user, and put this folder inside of a particular shared folder. Is this possible with ownCloud?


#2

Not inside the ownCloud application, you will have to script that using the API. In your case you will need provisioning + shareing + webdav


#3

Thanks for the reply. I’ve figured out user management now, and I can create/delete files.
I’m looking at the OCS share documentation, but I can’t figure out how it’s supposed to work. I try this command to get all shares, but it just returns code 100 success instead of showing any shares.

$ curl -k --user “user:password” https://xxx.xxx.xxx.xxx/owncloud/ocs/v1.php/apps/files_sharing/api/v1/shares

Edit: It won’t let me paste xml code here, so here’s a screenshot of the response.18%20PM