ownCloud X comes with a new guests app (https://github.com/owncloud/guests) that allows creating users that will only have access to files shared with them. On share creation, the guest will receive an invite link on his email account.
It basically hints any user lookup on the sharing dialog with a <search_name> (guest) extra option (recipients API doesn't integrate a specific type for guests, the guest option is always present on the web UI) that will trigger a new guest creation if it doesn't exist (as guest) already.
This can be integrated in a pretty straightforward manner in the client's sharing dialog since it involves just an extra API request to create the new guest user with a displayName and email (the username is auto-generated using the email):
curl -X PUT 'https://<server>/index.php/apps/guests/users' \
-H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' \
-H 'OCS-APIREQUEST: true' \
[...] \
--data 'displayName=workmate&username=workmate_email_company_com&email=workmate_email@company.com'
... and use that username to create an user share (shareType=0).
I made some really simple mockups on how to integrate in the existing sharing dialog to start working on the concept:
ownCloud X comes with a new guests app (https://github.com/owncloud/guests) that allows creating users that will only have access to files shared with them. On share creation, the guest will receive an invite link on his email account.
It basically hints any user lookup on the sharing dialog with a
<search_name> (guest)extra option (recipients API doesn't integrate a specific type for guests, the guest option is always present on the web UI) that will trigger a new guest creation if it doesn't exist (as guest) already.This can be integrated in a pretty straightforward manner in the client's sharing dialog since it involves just an extra API request to create the new guest user with a
displayNameandemail(theusernameis auto-generated using the email):... and use that
usernameto create an user share (shareType=0).I made some really simple mockups on how to integrate in the existing sharing dialog to start working on the concept: