Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

Federated and lightweight accounts #9381

Closed

Description

@tbsbdr

relates to 9c4ec26

Reduced functionality depending on user account type.

Activity

  1. added this to the CERN Web Merge milestone on Jul 10, 2023
  2. JammingBen commented on Oct 18, 2023

    @JammingBen
    Contributor

    @diocas @elizavetaRa

    The landing page is implemented via extension: cernbox/web-extensions#23

    For disabling specific UI elements (similar to 9c4ec26) we suggest to work with permissions. Web queries permissions for the current user via https://your-ocis-instance/api/v0/settings/permissions-list. It simply returns an array of strings. On the server side, these permissions can be individually mapped to user roles.

    The relevant ones to achieve similar as in 9c4ec26 are:

    • Favorites.List.all for enabling/disabling the Favorites nav item
    • Favorites.Write.all for enabling/disabling the "Mark as favorite" action
    • Shares.Write.all for enabling/disabling creating shares (also disables the views "Shared with me" and "Shared via link")
    • Drives.Create.all for enabling/disabling creating Spaces/Projects
    • PublicLink.Write.all for enabling/disabling creating public links

    One thing that currently can't be controlled via permissions is the trash bin nav item. That's because even without a personal space, you can still access trash bins of other spaces.

  3. tbsbdr commented on Oct 19, 2023

    @tbsbdr
    Author

    @elizavetaRa @diocas could oyu please discuss how we should proceed with the trashbins for lightweight accounts?

  4. kulmann commented on Oct 26, 2023

    @kulmann
    Contributor

    @elizavetaRa @diocas could oyu please discuss how we should proceed with the trashbins for lightweight accounts?

    Agreed in meeting on 26th of October, that lightweight accounts will be able to see all trash bins as a first iteration and wait for user feedback. Current idea is to also have an action from within spaces to directly navigate to the trash bin of the respective space (we had that already in the past).

  5. dschmidt commented on Oct 27, 2023

    @dschmidt
    Member

    Ftr: In addition to the permissions, we needed a way to determine early in the bootup process, whether a user has a lightweight account. In our PR to the CERN web-extensions repo we chose to check against the role name "user-light" .

  6. JammingBen commented on Nov 14, 2023

    @JammingBen
    Contributor

    Closing here since this is finished on our side. @elizavetaRa @diocas please feel free to create a new issue if you run into any trouble.

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

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions