Roles & permissions
PeaWork HRIS enforces role-based access on every route. The five roles are:
| Role | Scope | Key abilities |
| Employee | Self | View own profile, submit leave, submit timesheet, request changes, acknowledge documents |
| Manager | Self + team | Approve leave, review timesheets, conduct check-ins, manage team goals |
| HR | Organization | Employee CRUD, recruitment, onboarding, offboarding, policy config |
| Admin | System | Users, roles, settings, audit log, payroll runs, statutory rules |
| Superadmin | Platform | Tenants, subscriptions, identity providers, SCIM, backups, DR exercises |
Evidence: every state-changing action writes an audit_log row with actor, action, entity, details and IP. No action is silent.
Employee workflows
Dashboard GET /employee/dashboard
Employee Personal overview: leave balance, pending approvals, upcoming check-ins, assigned goals, recent documents, timesheet status.
Submit leaveChoose type (annual, sick, casual, etc.), date range, reason; system validates against balance and policy. Manager notified.
Submit timesheetLog hours per project/task/day; mark billable/non-billable; submit for approval.
Request changesInitiate profile, bank, tax, or address change requests; route to HR for verification.
Acknowledge documentsReview and sign policies, contracts, NDAs; digital signature recorded with timestamp and IP.
Evidence: leave_requests, timesheets, change_requests, document_acks all retain full history with actor/timestamp.
Manager workflows
Team dashboard GET /manager/team
Manager Team overview: leave calendar, pending approvals, timesheet review queue, goal progress, check-in schedule.
Approve/reject leaveView team leave requests with balance impact; approve, reject, or request clarification.
Review timesheetsApprove or return timesheets with comments; auto-calculates overtime and billable hours.
Conduct check-insSchedule 1:1s; record accomplishments, blockers, support needed, sentiment; link to goals.
Manage team goalsCreate/cascade goals; assign weights; track progress; approve goal updates.
Evidence: leave_approvals, timesheet_approvals, check_ins, goal_assignments all audit-logged with manager as actor.
HR workflows
HR workspace GET /hr
HR Organization-wide: employee CRUD, recruitment pipeline, onboarding, offboarding, policy config, leave policies, document templates.
Employee CRUDAdd/edit employees with personal, employment, compensation, bank, tax, emergency contact data; assign to org units.
Recruitment pipelinePost jobs; manage candidates through stages (applied, screen, interview, offer, hired); schedule interviews; send offers.
Onboarding & probationCreate onboarding checklists; assign tasks to employee/manager/IT; track probation reviews and outcomes.
OffboardingInitiate offboarding; auto-generate checklist (asset return, access revocation, exit interview, final settlement).
Policy configDefine leave types, accrual rules, holiday calendars, document templates, acknowledgment workflows.
Evidence: employee_audit, candidate_events, onboarding_tasks, offboarding_checklists all retained for compliance.
Admin workflows
Admin workspace GET /admin
Admin System configuration: users & roles, settings, audit log, payroll runs, statutory rules, integrations.
Users & rolesCreate/deactivate users; assign roles; configure SSO (OIDC/SAML); manage API tokens.
Payroll runsOpen periods; collect inputs; run payroll (beta — not filing-certified); review variances; finalize & generate payslips.
Statutory rulesCreate versioned rule sets (jurisdiction, parameters JSON, validation status); only validated rules drive production.
IntegrationsConfigure SCIM, webhooks, SFTP, GL export mappings, document storage (S3/Blob).
Evidence: user_audit, payroll_runs, statutory_validations, integration_logs all immutable.
Superadmin workflows
Cloud workspace GET /cloud
Superadmin Multi-tenant control plane: tenants, domains, subscriptions, identity providers, SCIM tokens, storage configs, backup policies, migrations, health checks.
Provision a tenantEnter slug (lowercase alphanumeric hyphens), name, region; attach domain and verify via DNS token; subscribe to plan.
SCIM provisioningIssue SCIM token (prefix pwscim_) for user provisioning from external IdP.
Backup & DRConfigure backup policies; trigger DR exercises; record RTO/RPO results.
Health checksMonitor service health, database performance, storage usage, API latency per tenant.
Evidence: cloud_audit table records tenant-scoped control actions with actor/action/entity.
Audit & compliance
Audit log GET /audit
Admin Superadmin Immutable log of every state-changing action: actor, action, entity, before/after JSON, IP, user-agent, timestamp, correlation ID.
Filter & exportFilter by role, entity, date range, action type; export CSV/JSON for auditors.
Retention & integrityLogs are append-only; signed hash chain prevents tampering; retention configurable per compliance regime.
Evidence: audit_log is the single source of truth for SOC-2, ISO 27001, DPDP evidence packages.