ums

Functional Story 6: Auto-Assign Authorization Template on Profile Creation

1. Business Purpose

UMS should reduce manual administration by assigning the right authorization template when a new profile matches approved business rules.

2. Actors

Actor Responsibility  
Security Administrator Configures assignment rules.  
UMS Rule Engine Applies matching rules during profile creation. ## 3. Business Preconditions

4. Main Functional Flow

  1. The administrator defines a rule that maps profile attributes to an authorization template.
  2. A new profile is created.
  3. UMS evaluates the profile against active assignment rules.
  4. If a rule matches, UMS assigns the corresponding template automatically.
  5. The profile is marked as automatically assigned.
  6. Affected users receive the resulting permissions.

5. Alternative Flows and Exceptions

A. No Rule Matches

If no active rule matches the profile, the profile remains without automatic template assignment and can be handled manually.

B. Multiple Rules Match

If more than one rule matches, UMS applies the highest-priority rule and records why it was selected.

6. Business Rules

  1. Automatic assignment must be explainable.
  2. Rule priority must be deterministic.
  3. Manual assignment remains available when automation does not match.
  4. Automatic assignments must be auditable.

7. Acceptance Criteria

  1. A matching rule assigns a template automatically.
  2. A profile with no matching rule remains available for manual assignment.
  3. Rule priority resolves multiple matches consistently.
  4. The assignment reason is visible to administrators.

8. Technical Requirements

[!WARNING] ESTADO DE IMPLEMENTACIÓN: DIFERIDO
En la fase actual, la lógica automatizada de reglas de auto-asignación (TemplateAssignmentRule) está diferida en el dominio principal de C# y se maneja mediante referencias externas o asignaciones directas y manuales en los perfiles.

9. Traceability