Skip to content

US: Revoke a role from a library member #54

@MaferMazu

Description

@MaferMazu

As a Library Admin, I want to revoke a role from a library member, so that I can reduce their access when needed.

Figma: https://www.figma.com/design/q3Knq0BKoVTBbtaxb81n9R/RBAC---Console---Wireframes?node-id=2750-12293&t=71PeX22gyABqxnHu-4
https://www.figma.com/design/q3Knq0BKoVTBbtaxb81n9R/RBAC---Console---Wireframes?node-id=2750-13331&t=71PeX22gyABqxnHu-4

Acceptance criteria

  • Placement
    In the User View, each assigned role is shown as a Role Card. The card header includes a Delete control for that role.

  • Access
    Visible and usable only for users with manage team permission.

  • Behavior
    Clicking Delete opens a confirmation modal that warns about loss of access.
    Confirming removes that role from the member.
    If the member has no roles left after removal, redirect to the Team Members list and the user no longer appears there.
    If I am viewing my own user and the role is Library Admin, I cannot remove it, show a brief message explaining the rule.
    On success, close the modal and refresh the User View or Team Members list as applicable, show a success toast, "Role removed successfully."

  • States and feedback
    While saving, disable controls and show a saving state.
    Errors are shown as an error message in the modal, design to be defined.

Notes, out of scope for this card

  • API and detailed error views are defined in a separate card.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions