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 rule: every state-changing action writes an audit_log row with actor, action, entity, details and IP. No action is silent.
1. Dashboard
Home dashboard GET /
All roles The landing screen after login. Shows live counts: active employees, departments, pending leave, documents, open requisitions, active candidates, onboardings in progress, present today, pending timesheets, active performance cycles, goals at risk, feedback due, open payroll, payroll errors, pending transfers, active journeys, offboarding cases, my inbox, pending profile changes.
Steps: 1) Sign in at /login. 2) Read the KPI row. 3) Click any count to drill into the module. 4) Review the recent employees and recent leave lists.
Evidence: login writes LOGIN to audit_log; the dashboard itself is read-only.
2. Employee management
Employee directory GET /employees
All roles Searchable list of employees by name, employee number or work email. Click a row to open the profile.
New employee GET+POST /employees/new
HR Admin Creates an employee record. Fields: employee_no, first/last name, work_email, phone, date_of_joining, employment_type, department, position, manager, location.
Steps: 1) Open /employees/new. 2) Fill required fields. 3) Submit. 4) System writes HIRE to employee_history and CREATE to audit_log. 5) You land on the employee profile.
Evidence: employee_history row + audit_log row with actor IP.
Employee profile GET /employees/{eid}
All roles Shows profile, change history, documents and leave history for one employee.
3. Organization structure
Organization GET /organization
All roles Lists departments with parent, manager and headcount, and positions with department and grade.
Add department / position POST /organization/departments · POST /organization/positions
HR Admin Create a department (name, code) or a position (title, code, department, grade).
Steps: 1) Scroll to the create form. 2) Enter name/code. 3) Submit. 4) Audit row CREATE is written.
4. Leave management
Leave workspace GET /leave
All roles Employees see their own requests; managers, HR and admin see all. Shows leave types, holidays and a request form.
Employee — request leave1) Open /leave. 2) Choose leave type, start and end date, days and reason. 3) Submit. 4) Request appears as Pending. Employees cannot file for another employee (server rejects with 403).
Manager / HR / Admin — decide1) Find the Pending request. 2) Approve or Reject and add a comment. 3) Status becomes Approved or Rejected with approver and timestamp.
Evidence: CREATE leave_request and APPROVED/REJECTED actions are written to audit_log with the approver's employee id and comment.
5. Document management
Documents GET /documents
All roles Lists all employee documents with employee, category and expiry.
HR / Admin — upload1) Open /documents. 2) Pick employee, category, title, optional expiry and file. 3) Submit. Allowed types: pdf, png, jpg/jpeg, doc/docx, csv, txt; optional ClamAV scan; size limit via PEAWORK_MAX_UPLOAD_BYTES (default 10 MB).
Evidence: stored file path + UPLOAD audit row including original filename.
6. Workforce — attendance, shifts, timesheets
Workforce workspace GET /workforce
All roles Central hub for shifts, weekly offs, work patterns, attendance, overtime, timesheets, biometric devices/imports and leave accrual runs.
Shift & schedule setupHR/Admin create a shift (name, code, start/end, break, grace, minimum hours), a weekly-off pattern, and assign an employee work pattern with an effective date.
AttendanceRecord daily attendance per employee (check-in, check-out, worked/overtime hours, status, source). One record per employee per date.
OvertimeEmployee or HR submits an overtime request; manager/HR decides approve/reject with comment.
Timesheet flow (employee → manager)1) Create a weekly timesheet. 2) Add dated entries (project code, activity, hours). 3) Submit. 4) Manager approves or rejects with a comment. 5) Approved data feeds payroll attendance sync.
Biometric importRegister a device, upload a punch CSV (device_code, employee_no, punch_time, direction). System imports valid rows and reports rows_received / imported / rejected with errors.
Leave accrual runChoose period, leave type and amount per employee; system accrues balances and records the run plus per-employee entries. Re-running the same period+type is blocked (idempotent).
Evidence: attendance_records, timesheet status transitions, biometric_imports error log, leave_accrual_runs summary, all mirrored to audit_log.
7. Recruitment pipeline
Recruitment workspace GET /recruitment
Admin HR Manager Superadmin Manages requisitions, candidates, applications, interviews and offers through stages: Applied → Screening → Interview → Assessment → Offer → Offer Accepted → Hired → Rejected → Withdrawn.
Create requisitionAdmin/HR/Manager: title, department, position, hiring manager, openings, employment type, location, target date, description. Status starts Open.
Add candidateAdmin/HR/Manager: name, email (unique), phone, current company, experience years, source, optional resume upload.
Create applicationLink a candidate to an open requisition; stage starts Applied.
Advance stageMove application forward through the pipeline stages; Hired/Rejected/Withdrawn closes the application.
Schedule interviewPick interview type, scheduled time, interviewer; auto-advances stage to Interview if it was Applied/Screening/Assessment.
Interview feedbackRate 1–5, scorecard, feedback text and recommendation (Reject / Advance / Offer). Affects application stage.
OfferIssue an offer (title, salary, currency INR, joining date); move status Draft → Issued → Accepted/Declined/Withdrawn.
Evidence: CREATE/STAGE/SCHEDULE/COMPLETE/ISSUE/STATUS audit rows per action, including who changed what.
8. Onboarding & probation
Onboarding workspace GET /onboarding
Admin HR Manager Superadmin Tracks journeys, task templates, active onboardings, tasks and probation reviews.
Build a journeyAdmin/HR: create a journey (name, department, employment type) and add task templates (title, category, owner role hr/it/admin/manager, due offset days, required).
Start onboardingAdmin/HR/Superadmin: pick an accepted offer and a journey; system creates the onboarding at the joining date, generates dated tasks owned by the right role, and schedules a probation review at probation_end_date.
Work the tasksOwners move tasks Open → In Progress → Completed/Waived/Blocked. When all tasks are complete the onboarding auto-marks Completed.
Probation reviewManager/HR records reviewer, rating, recommendation (Confirm / Extend / Exit / Pending) and notes. A non-Pending recommendation completes the review.
Convert to employeeAdmin/HR converts the onboarding to an employee record; system creates the employee, HIRE history, marks the application Hired and the candidate Hired. Employee limit enforced.
Evidence: START/STATUS/REVIEW/CONVERT audit rows; probation_reviews and onboardings status transitions are retained.
9. Talent & performance
Talent workspace GET /talent
Admin HR Manager Performance cycles, goals/OKRs, check-ins, feedback, competencies, skills, development plans and calibration.
Create cycleAdmin/HR/Manager: name, type (Annual/Quarterly/etc.), start/end dates, goal due, self-review due, manager-review due, description.
Add participantsAdmin/HR/Manager: enroll employees with a manager; status starts Not Started.
Self reviewEmployee: record self summary and overall self rating.
Manager reviewManager: record manager summary, overall manager rating; system can compute a final rating.
Goals / OKRsManager/HR/Employee: create goals (title, metric, baseline, target, weight, due date) and post progress updates with current value and status.
Check-insEmployee/manager log check-in (accomplishments, blockers, support needed, next steps, sentiment).
Feedback requestsEmployee/Manager request feedback from a peer, set due date and message; responder returns strengths, improvements, examples, rating, visibility (Manager Only / Shared).
Competencies & skillsDefine competency framework and expectations per grade; assess self vs manager levels; record skills with proficiency and interest.
Development plansEmployee/Manager: create plan (career goal, target date) and add actions (type, title, description, due date, success measure). Move actions through statuses.
CalibrationManager/HR: create calibration sessions, add participant entries (proposed vs calibrated rating, performance/potential bucket, risk flag, rationale), and complete the session.
Evidence: cycle lifecycle, goal updates, check-ins and feedback responses are retained; all status changes go to audit_log.
10. Payroll
Payroll workspace GET /payroll
Admin HR Pay components, statutory rules, salary structures, compensation, periods, inputs, reimbursements, runs and payslips. Payroll is beta — not filing-certified.
Configure componentsDefine pay components: earning/deduction/reimbursement, calculation type (Percent CTC, Percent Component, Fixed, Input), taxable, statutory, GL accounts, display order.
Statutory rulesCreate versioned statutory rule sets (jurisdiction, effective dates, parameters JSON, validation status). Only validated rules should drive production.
Salary structuresBuild a structure and add component lines (amount/rate and base component).
Assign compensationAttach a structure to an employee with annual CTC and effective date; optional per-component overrides.
Open a periodCreate a payroll period (code, start/end, pay date, working days).
Collect inputsAdd variable inputs (arrears, deductions, reimbursements) with employee, component and amount; approve each input. Sync attendance from workforce into payable/LOP days and overtime.
ReimbursementsCreate a claim (category, amount) and approve or reject.
Run payrollCreate a run: system computes per-employee gross, deductions, net, employer cost from compensation + attendance + inputs, and flags validation errors. Draft status first.
Review variancesEach employee row shows net variance vs previous period; investigate errors before finalizing.
Finalize & payslipsFinalize the run to generate payslips and lock figures. Export accounting CSV (debits/credits, balanced flag).
Evidence: payroll_runs validation_errors, run employee variance, payslips, accounting export totals and balanced flag — all auditable before sign-off.
11. Global Core HR
Core HR workspace GET /core-hr
Admin Global settings: legal entities (PW-IN), locations, cost centers, job families, job profiles, global employee profiles, assignments, transfers, salary structures, component overrides, payroll inputs, leave accrual runs, performance cycles, goals, feedback requests, competencies, skills, development plans, calibration sessions, events, change requests, acknowledgements, notifications, inbox items, offboarding cases/tasks.
Global employeesQuery all employees with global_employee_id, preferred name, personal email, nationality/country code, home country code, primary language, emergency contact.
Assignments & transfersEmployee assignment no, legal entity, location, department, cost center, project, job profile, position, manager, effective dates, reason, status, primary assignment.
Payroll input syncPeriod + employee + component + input type + amount + source + approved_by + created_at → payroll_inputs row.
Compensation structureStructure per employee with annual base, variable target, effective dates, status, and per-component amounts/rates.
Evidence: every payroll_inputs row is linked to a payroll_run via period+run_number; finalized runs produce payslips and accounting exports.
12. Employee lifecycle & offboarding
Lifecycle workspace GET /lifecycle
HR Lifecycle event types (hire, transfer, promotion, separation, exit interview, probation review, onboarding start/convert). Task templates by journey (name, category, owner role, due offset days, required).
JourneysCreate a journey (name, dept, employment type) and task templates (title, category, owner user, due date, required).
Start onboardingPick an accepted offer and journey; system creates the onboarding at joining date, generates dated tasks owned by right role, schedules probation review.
Task executionMove tasks Open→In Progress→Completed/Waived/Blocked. When done, onboarding records completed_at.
Probation reviewManager/HR reviews rating, recommendation and notes; sets status Planned/Completed.
ConvertAdmin/HR converts onboarding to employee record; updates application stage Hired, candidate status Hired, employee history HIRE.
Evidence: cycle participants, goal progress, check-ins, feedback responses, competency assessments, skill evidence, development actions, calibration entries — all retained in audit_log.
13. Experience & inbox
Experience workspace GET /experience
Admin Workforce scheduling, attendance, timesheets, biometric punch, experience profiles, preferences, inbox items, requests, documents acknowledgment.
PreferencesSet email_enabled, in_app_enabled, push_enabled, digest frequency, quiet start/end windows.
InboxMark items complete; assign responders; track priority and due date.
Evidence: notification_preferences rows, inbox_items status transitions, request resolution.
14. Settings & admin
Settings GET /settings
Admin Superadmin Key/value settings, user management (create user with username/password/role).
Create userEnter username, password, role (employee/manager/hr/admin/superadmin). System hashes with PBKDF2-SHA256 (600k iterations) and creates active user.
Evidence: CREATE user row with actor IP in audit_log.
15. Audit & compliance
Audit log GET /audit
Admin Superadmin Last 250 audit entries: actor, action, entity type/entity ID, details, IP, created_at.
Evidence: every mutating endpoint writes audit_log. No silent writes — this is the single source of truth for SOC-2/ISO27001 evidence.
16. Cloud & tenant administration
Cloud workspace GET /cloud
Superadmin Multi-tenant control plane: tenants (slug, name, status, region, storage prefix), domains (verify), subscriptions/plans (employee limit), identity providers (OIDC/SAML draft/enabled), SCIM tokens, storage configs, backup policies/runs, migrations, health checks, service checks.
Provision a tenantEnter slug (lowercase alphanumeric hyphens), name, region. Attach domain and verify via DNS token. Subscribe to a plan (BETA default 2000 employees).
SCIMIssue a SCIM token (prefix pwscim_) for provisioning users from an external IdP.
Evidence: cloud_audit table records tenant-scoped control actions with actor/action/entity.
17. Readiness & evidence
Readiness workspace GET /readiness
Admin Superadmin Readiness evidence (control title, category, status, reviewer role), DR exercises, load tests, accessibility findings, security events.
Record evidenceSet control code (e.g., SEC-ASVS-L2, A11Y-AA, DR-RESTORE), title, category, status and reviewer; attach evidence reference.
Evidence: readiness_evidence rows with reviewer and reviewed_at; used for commissioning sign-off.
18. Privacy & DPDP
Privacy workspace GET /privacy
Admin Retention policies/runs, privacy requests (DSAR/deletion), breach incidents, response workflow.
RetentionDefine retention days per data category and action (delete/legal-hold); run policy and record records acted.
BreachLog breach incidents (severity, systems affected, data categories, containment, notification decision); resolve with owner role.
Evidence: privacy_requests and breach_incidents rows are retained for regulator review.