Skip to content

Support for guest account creation/share  #5796

Closed

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 protected]'

... 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:

Activity

  1. SamuAlfageme commented on Jun 7, 2017

    @SamuAlfageme
    ContributorAuthor

    Closing here as feature is no longer relevant for the client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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