Version: 1.0Documentation Index
Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
Use this file to discover all available pages before exploring further.
Created: 2026-01-05
Last Updated: 2026-01-05
Status: Active
Spec: HR-UX-01 Employee Onboarding Wizard
Overview
Documents the integration between HR employee onboarding (HR-UX-01) and IT provisioning (IT-08).Integration Flow
Data Flow
1. HR Onboarding Wizard (Step 5: System Access)
Employee/HR selects system access requirements:| Field | Type | Description |
|---|---|---|
emailRequested | boolean | Request new email account |
networkAccessRequested | boolean | Request network/VPN access |
applicationAccessIds | string[] | Application access requests |
hardwareRequests | string[] | Hardware needs (laptop, phone, etc.) |
2. Wizard Completion
When the onboarding wizard is completed:3. IT Onboarding Instance Created
The hook creates a new row init_onboarding_instances:
| Column | Value |
|---|---|
employee_id | Link to new employee |
workflow_type | 'onboarding' |
status | 'pending' |
priority | 'normal' |
target_date | Employee hire date |
notes | Access requests summary |
Event Contract
| Event | Publisher | Subscriber | Trigger |
|---|---|---|---|
employee_onboarding_system_access_requested | HR-UX-01 | IT-08 | SystemAccessStep completion with access requests |
Integration Points
HR Side (Publisher)
- Hook:
src/cores/hr/hooks/useITOnboardingIntegration.ts - Page:
src/cores/hr/pages/OnboardingWizardPage.tsx - Step:
src/cores/hr/components/wizards/steps/SystemAccessStep.tsx
IT Side (Subscriber)
- Table:
it_onboarding_instances - Dashboard:
/it/onboarding - Hook:
useITOnboardingInstances(existing)
Security Considerations
Access Controls
- RLS Policies: IT onboarding instances protected by organization-level RLS
- Permission Check: Only users with
hr.employees.createcan trigger IT onboarding - Audit Trail: All IT instances include
created_byfor accountability - IT Staff Access: IT technicians can view via
it.onboarding.viewpermission
Data Classification
- PII/PHI Linkage: IT onboarding instances link to employee records containing PII/PHI:
- SSN (from PersonalInfoStep)
- Date of Birth (from PersonalInfoStep)
- Home Address (from PersonalInfoStep)
- Emergency Contact Information
Data Protection
- Encryption at Rest: All employee data encrypted in database (AES-256)
- Encryption in Transit: All API calls use TLS 1.2+
- PHI/PII Restrictions:
- System access
notesfield MUST NOT include SSN, DOB, full addresses, or other sensitive identifiers - Only reference employee by ID, not by sensitive data
- Never log PII/PHI in error messages or console output
- System access
Audit & Logging
- Logged Actions: IT instance creation, status updates, access attempts, deletion
- Retention Period: Audit logs retained per organization data retention policy (default: 7 years)
- No PII in Logs: Error messages sanitized to prevent PII exposure
Future Enhancements
- Real-time notifications: Notify IT team when new instance created
- Application catalog: Integrate with IT application inventory
- Hardware inventory: Link to FM asset management
- Auto-assign technician: Route based on department/location