I use Create Folder API MKCOL remote.php/dav/files/user/path/to/new/folder. I would like to clarify if it is possible to create a folder for another user.
In my case, one user should be able to create the folder for another user (not share).
User A is authenticated via Bearer Token and sends a request to create a folder for User B, as a result, I get an error “Sabre\DAV\Exception\Forbidden: Permission denied to create directory”.
@mariia
I think it is not possible because of security. Every user only can create his/her own folders. Perhaps you can use Group Folders. Also you can use commands in linux. E.g. mkdir /path/to/folder in combination with occ files:scan . But this is not a good idea.
Can you explain your goal? Maybe we find a solution.