Skip to content

Support for guest account creation/share  #5796

@SamuAlfageme

Description

@SamuAlfageme

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:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions