Can you use the Share API to share a file located in another user's ownCloud account (without knowing or using the user's password)? The only examples I've been able to find show the path as relative to the user doing the sharing. Any ideas?
If you go through the OCS Share API you can't as it would be a security hole to allow another user to share this way.
On PHP level you can use the share manager: \OC::$server->getShareManager()->createShare() and others to programmatically create shares from any other user.
Thank you very much!