User Interface medium complexity frontend
0
Dependencies
0
Dependents
1
Entities
0
Integrations

Description

Administrative UI surface embedded within the user edit experience and accessible as a standalone action from the user list. Displays current role memberships for a user and allows admins to assign, change, or revoke roles with validation feedback for disallowed transitions.

Feature: Role Assignment

role-assignment-panel

Sources & reasoning

Source lists Role Assignment as an explicit feature of admin-user-management and ties role-based access to the four-role model. MVP scope for admin explicitly includes rolletildeling (role assignment).

  • admin-user-management | User Management | User CRUD, Role Assignment, Bulk Actions
  • 4 defined user roles: Peer Mentor (Likeperson), Coordinator, Organization Administrator (Org Admin), Global Administrator
  • Brukeradministrasjon (invitere, deaktivere, rolletildeling)

Responsibilities

  • Render current role memberships for the selected user with clear visual indication of active roles
  • Provide controls for multi-role assignment, change, and revocation
  • Surface validation errors when a role transition violates access-boundary rules
  • Confirm destructive actions such as revoking the last admin role on a user
  • Emit role change requests to the Role Assignment Service and reflect the resulting state

Interfaces

loadUserRoles(userId): RoleMembership[]
assignRole(userId, roleId): AssignmentResult
revokeRole(userId, roleId): RevocationResult
onRoleChange(callback): void

Related Data Entities (1)

Data entities managed by this component