# role-management

## Overview

Manages roles within the organization. Users with appropriate roles can define roles with specific permissions, and assign or remove roles from users to control access.

## Actors Involved

- [user](../../actors/user.md)

## Flow Diagram

```mermaid
sequenceDiagram
    actor User as user
    participant System

    User->>System: Create Role
    System-->>User: Role created
    User->>System: Update Role Permissions
    System-->>User: Role updated
    User->>System: Assign Role to User
    System-->>User: Role assigned
    User->>System: Remove Role from User
    System-->>User: Role removed
    User->>System: Deactivate / Reactivate Role
    System-->>User: Role status changed
```

## Stories

- [Create Role](./story/user--create-role.md)
- [Update Role Permissions](./story/user--update-role-permissions.md)
- [Assign Role to User](./story/user--assign-role-to-user.md)
- [Remove Role from User](./story/user--remove-role-from-user.md)
- [Toggle Role Status](./story/user--toggle-role-status.md)
