Service Layer high complexity backend
0
Dependencies
0
Dependents
19
Entities
0
Integrations

Description

Core business logic service orchestrating all administrative operations for the Admin Portal. Enforces role-scoped data access policies, coordinates user management actions, delegates audit logging to the database layer, and aggregates cross-table metrics for dashboard display. Integrates with the Role Authorization Service and Permission Guard to validate every admin action before execution.

Feature: Admin Portal

admin-management-service

Responsibilities

  • Enforce organizational scope boundaries for all admin operations
  • Orchestrate user role assignment, deactivation, and reactivation workflows
  • Aggregate dashboard metrics from multiple data sources
  • Coordinate settings persistence and validate configuration changes
  • Trigger audit log entries for all mutative admin actions

Interfaces

getDashboardMetrics(adminId, orgScope)
getUsersInScope(orgId, adminRole)
assignUserRole(adminId, targetUserId, roleId)
revokeUserRole(adminId, targetUserId, roleId)
deactivateUser(adminId, targetUserId, reason)
reactivateUser(adminId, targetUserId)
getOrganizationSettings(orgId)
updateOrganizationSettings(adminId, orgId, settings)
getAuditLog(orgId, filters)
validateAdminPermission(adminId, action, resourceId)