Skip to content

[Epic 2] Add permission to an entity #39

@avasi-code4ro

Description

@avasi-code4ro

User story

As an administrator, I want to add a new permission for a team member on one or more datasets/entities, so that they can collaborate on the appropriate data.

Description

The "Add Permission" button (from this page) opens a modal with a searchable table of all available entities. Each row allows editing the user's permission level. Entities for which that user has no access are marked in the table with "No access".

Acceptance criteria

  • Modal opens when clicking “Add Permission” from user page.
  • The table lists all available entities (datasets, processed data, charts, etc.).
  • Entities the user already has access to show their current permission.
  • Entities with no access show “No access” (disabled state).
  • Admin can change permission per entity inline (dropdown with: Viewer, Editor, Owner depending on the Permission change logic explained here).
  • Dynamic search by entity name
  • (nice to have) a check that shows only entities with no access

Business rules

  • A user cannot be downgraded from Owner unless ownership is transferred via the dedicated flow (transfer ownership issue [Epic 2] Actions on permissions list #40 )
  • An entity can only have one Owner — assigning someone else as Owner triggers a transfer modal.
  • Viewer/Editor roles can be upgraded/downgraded freely.
  • Dropdowns for entities with "No access" start with disabled state and are enabled upon selection. From a no access state, a user can become editor or viewer. Owner-> disabled.
  • Admin can edit multiple permissions in one session before saving.

Figma

Add new permission modal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions