Skip to content

feat(identity): simple user and role management for admins #30

Closed

Description

@Fluory

Goal

Company admins manage their users in the app – the customer request asks for "eine einfache Benutzer- und Rechteverwaltung"; invite form and seed script alone do not cover it.

Acceptance criteria

  • Admins see the users of their own company with role and status
  • Admins invite users, change the role (admin / clerk) and deactivate users; every change is audited
  • An admin cannot remove the last admin of a company
  • Clerks have no access to user management (server-side check, not only hidden UI)

Not part of this task

  • SSO, SCIM, custom roles, cross-company administration

Affected areas

  • src/features/identity/
  • src/app/

Test plan

Criterion Check
role change + audit integration test
last-admin rule unit test
clerk denied integration test against the server action/route

Security/Privacy affected?

Yes – authorization. Run security-review before ready-for-review.

Epic: #18 · Architecture: docs/decisions/ADR-0001-pilot-architecture.md

Activity

  1. added
    featureNew capability
    securitySecurity or privacy relevant
    readyDefinition of Ready met – may be claimed
    on Sep 22, 2026
  2. self-assigned this
    on Sep 23, 2026
  3. Fluory commented on Sep 23, 2026

    @Fluory
    OwnerAuthor

    Claimed by @Fluory (Claude Code, overnight run) on branch claude/feat-user-management-30 – stacked on #37 (claude/feat-rls-guard-29). Draft PR follows.


    Generated by Claude Code

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

Metadata

Metadata

Assignees

Labels

featureNew capabilityreadyDefinition of Ready met – may be claimedsecuritySecurity or privacy relevant

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions