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

Description

Admin Web Portal page/dialog that lists users in the organization with their current role and provides controls to assign, change, or revoke roles. Presents a plain-language description of each role's access boundaries before the admin confirms a change, preventing accidental privilege escalation.

Feature: Role Assignment

role-assignment-ui

Sources & reasoning

Admin Web Portal requires a dedicated UI surface for role assignment - the feature's primary workflow is an admin selecting a user, choosing a role with a descriptive label, and confirming. The UI must show boundary descriptions before confirm to prevent accidental escalation as stated in implementation notes.

No source references — this artifact was included based on reasoning alone (see above).

Responsibilities

  • Display current role for each user in the organization
  • Render role picker with plain-language boundary descriptions per role
  • Submit role-change requests and surface confirmation dialogs
  • Show inline feedback on success or authorization errors

Interfaces

openRoleAssignmentPanel(userId: string): void
selectRole(roleEnum: string): void
confirmRoleChange(): Promise<void>
revokeRole(userId: string): Promise<void>

Relationships

Dependencies (2)

Components this component depends on

Related Data Entities (1)

Data entities managed by this component