# Remove Role From User

## User Story

As a user with the appropriate role, I want to remove a role from a user, so that their permissions are revoked.

## Story Diagram

```mermaid
flowchart TD
    A[Open User Detail] --> B[Select role to remove]
    B --> C[Click Remove]
    C --> D[Confirm removal]
    D --> E[Role removed from user]
```

## Scenario Patterns

- Remove an assigned role from a user
- Cancelling the confirmation leaves the role assignment unchanged

## Test Cases

- Select an assigned role on a user, click Remove, and confirm; verify the role no longer appears in the user's role list
- Select an assigned role on a user, click Remove, and cancel; verify the role still appears in the user's role list

## Screens

- [user-detail](../../../screen/user-detail.md)

## Resolvers

- [updateUserRoles](../../../resolver/updateUserRoles.md)
