What is RBAC + audit logging in WORKSPHR?
A seven-role baseline with 70+ granular permissions, a custom role builder scoped to department or position, and a tamper-evident audit log recording every Create / Update / Delete / Login / Export action. Read-only by design, defensible in DOLE and SOC 2 audits.
When access controls are an afterthought
Most Filipino HR tools were built around “HR can do everything, employees can do nothing”. That breaks the moment you have a payroll specialist who shouldn't see promotions, or a manager who needs leave approval but not salary visibility. The fixes get hacked into Excel, with predictable consequences.
| Risk | What happens | Typical exposure |
|---|---|---|
| God-mode admins | 5 staff with full delete + export, 0 accountability | NPC + DOLE exposureno audit trail = no defense if data is leaked |
| Salary leaks | Manager sees compensation he shouldn't, by accident | ≈ PHP 100K+ per incidentmorale damage, retention loss, legal review |
| Audit "we don't know" | DOLE asks who edited the 201 file, no answer exists | ≈ PHP 500K+remediation cost + amplified audit fees |
| Off-boarding bombs | Resigned admin still has prod access for 90+ days | PHP 50K–500Kper data exfiltration / unauthorized access incident |
Six tools, one access & audit story
Roles, editable Owner/Admin permissions, custom builder, audit viewer, compliance export. Built into the platform from day one, available on every plan, no enterprise upsell.
1.7-role baseline system
Seven roles ship pre-configured: super_admin, org_admin, hr_manager, hr_staff, manager, employee, contractor. Each has a sensible default permission set you can clone and customize. Most clients never need to build a role from scratch.
- super_admin (cross-tenant) · org_admin (full org)
- hr_manager · hr_staff (no delete, no export)
- manager (own dept only) · employee (own data)
- contractor (limited views, no payslip)
2.Editable Org Owner & Admin roles
Org Owner and Org Admin used to be hardcoded bypasses, invisible on the Access Control page. Now they're real, editable roles: see and adjust exactly what an Owner or Admin can do, the same way as any other role. Dozens of newly gated areas, billing, payroll configuration, org settings, RBAC management itself, skills, and more, are independently grantable, so you can hand out narrower access without promoting someone to full Org Admin.
- Org Owner + Org Admin now visible & editable on Access Control
- Billing, payroll config, org settings independently gated
- RBAC management itself is a grantable permission
- Skills and other modules join the granular permission set
3.70+ granular permissions
Permissions are organised into module groups: Employees, Payroll, Leave, Attendance, Recruitment, Reports, Settings, RBAC. For each module, toggle individual create, read, update, delete, export, approve flags. Or use the module-header toggle to select all.
- Employees: create / read / update / delete / export
- Payroll: view / compute / approve / export
- Leave: view / approve / reject / configure
- Each enforced via require_permission()
4.Custom role builder
Build a “Payroll Specialist” or “Branch Manager Cebu” in minutes. Scope to a Department + Position so the role only sees rows under that department. Duplicate an existing role to use as a starting point. Cannot delete a role that's currently assigned, no orphaned users.
- Name, description, scope (dept + position)
- Permissions matrix with bulk toggles
- Duplicate-role with "-copy" suffix
- Cannot delete in-use roles
5.Audit log viewer
Every Create / Update / Delete / Login / Logout / Export / Import / Approve / Reject action is logged with timestamp, user, resource, IP, user-agent, status, and a JSON diff of old vs new values. Filter by action type, resource, user, date range. Read-only, no UI to edit.
- Filters: action / resource / user / date / status
- Detail modal: old value + new value diff
- Read-only at app + DB layer
- 20 records per page, no time-window cap
6.Compliance export
Export the audit log to CSV or JSON for a specific date range, ready to hand to your DOLE inspector or SOC 2 auditor. Or pipe it to your SIEM (Datadog, Sumo, ELK) for longer retention. RBAC settings can also be snapshot-exported as part of your annual access review.
- CSV / JSON export per date range
- SIEM webhook (Datadog / Sumo / ELK)
- Annual RBAC snapshot for SOC 2 evidence
- DOLE-ready employee-action reports
From provisioning to audit, in three steps
1.Pick from 7 baseline roles
Day-1 setup uses the seven defaults. Most companies need zero customisation to start, just assign each user one of super_admin, hr_manager, manager, employee, etc.
2.Build custom roles as you grow
When you need "Payroll Specialist (no delete)" or "Branch Manager Cebu" (dept-scoped), the role builder ships them in minutes. The four-tier guard chain enforces them on every endpoint.
3.Audit anything, anytime
Any org_admin or hr_manager can pull "who deleted that 201 file" or "who exported the alphalist" in seconds. Pipe the same stream to Datadog or hand a CSV to your auditor.
