Skip to content

Add method to get user list from mount point #11180

Closed

Description

@PVince81

The encryption app is currently dependend on files_external in some way:
https://github.com/owncloud/core/blob/master/apps/files_encryption/lib/util.php#L1026

The encryption app actually needs to know what users have access to a given mount point and should not need to know about the external storage app.

The suggestion here is to add a new method getUsersWithAccess() to the Storage class (or alternatively to Mount).

External storage implementations (or ExternalMount) should then return a list of users or groups that have access to the point point.
SharedStorage (or SharedMount) implementation can simply return the already known list of users.

Tagged as technical debt.

@icewind1991 @th3fallen @schiesbn @Xenopathic

Activity

  1. PVince81 commented on Sep 19, 2014

    @PVince81
    ContributorAuthor

    Also a hook/proxy that makes it possible to listen to changes.

    It would make it possible to listen to events like whenever a share mount point user list changed or the applicable users of an external mount point changed.
    This would be useful for encryption to be able to auto-add/remove keys when the applicable users change.

    But it wouldn't solve the problem for when users are added to groups...

  2. modified the milestone: backlog on Mar 21, 2015
  3. PVince81 commented on Oct 27, 2017

    @PVince81
    ContributorAuthor

    @patrickjahns we saw a similar method this week in the search_lucene app

  4. patrickjahns commented on Oct 27, 2017

    @patrickjahns
    Contributor

    Yes - it included though two functionalities:

    • usersWithAccess
    • groupsWithAccess

    it would be good to move this to core and refactor the application to use this method and cleanup the application

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions