Daily Operations
The click-by-click procedures for the three Security tools. Each one is a short, repeatable task an administrator or support user performs — and each sensitive action leaves a row in your audit log.
Tool 1 — Offsite Access
What it is. Some tenants restrict sign-in to a whitelist of office IP addresses. An Offsite Access grant is a time-boxed exception: it lets a named staff member sign in from anywhere between a start date and an end date. ERPat's core IP-restriction middleware reads these grants on every request, so the exception applies automatically while the window is open and stops the moment it ends.
Where. Security → Offsite Access · Permission:
offsite_access (with _create / _update /
_delete for the actions).
Grant an offsite window
Open the page
Go to Security → Offsite Access. The table lists current grants with their start/end dates, the employee (ID number, name, job title, department), who created it, and when.
Add a grant
Click Add to open the form. Pick one or more staff members (the picker accepts individual people and whole teams), then set the Start date and End date of the window.
Save
Saving creates one grant row per selected staff member. An audit-log entry "Offsite access window was granted" is written. Those users can now sign in from off-network until the end date passes.
Edit or revoke a grant
- Edit (pencil icon, needs
offsite_access_update) — change the employee or the start/end dates on an existing grant. Logs "Offsite access window was updated". - Revoke (✕ icon, needs
offsite_access_delete) — a confirmation prompt, then the grant is removed. Logs "Offsite access window was revoked". The person immediately loses the exception (subject to the whitelist again).
Tool 2 — Locked Accounts & Active Sessions
What it is. One page, two tabs. Locked Accounts is where you rescue someone locked out after too many wrong passwords. Active Sessions is where you see and end people's live logins.
Where. Security → Locked Accounts · Permission:
locked_accounts for the page (holders of the core staff_support
permit can also reach it); active_sessions governs session management.
Unlock a locked account
Open the Browse tab
Security → Locked Accounts opens on the Browse tab, which lists staff whose accounts are currently locked — with their login-attempt count and the time of the last attempt. Filter by department, establishment, or label.
Clear the attempts
In the row's action menu choose Clear Attempts. This resets the failed-attempt counter to zero, clears the last-attempt timestamp, and re-enables login — the account is unlocked immediately.
(Optional) Reset the password
The same action menu offers Reset Password if the user also needs new credentials. An audit entry "Account was unlocked (failed login attempts cleared)" is recorded, and the unlocked user is notified.
View & end active sessions
Open the Active Sessions tab
Switch to the Active Sessions tab. It lists staff users who currently have live logins, each showing a count of active sessions.
Inspect a user's sessions
Choose View Sessions to open a modal listing that user's individual sessions with session ID and last-activity time.
Terminate one session
Inside the modal, Terminate Session ends a single login (e.g. a forgotten sign-in on a shared PC). Logs "A single active session was terminated".
Or log the user out everywhere
From the row's action menu, Logout All Devices ends every session for that user at once — the go-to response for a lost device or a compromised account. Logs "All active sessions for a user were terminated".
Tool 3 — Access Device Logs
What it is. A register of your physical door/access devices and a history of the access events they record. The page has three tabs — Logs · Devices · Categories. Each device holds an API key and API secret that the physical device uses to identify itself when it reports an access event.
Where. Security → Access Logs · Permission:
access_logs (governs the whole page and all three tabs).
Set up categories first
Open the Categories tab
On Security → Access Logs, switch to Categories. Categories group your devices (e.g. "Main entrance", "Server room", "Parking gate").
Add a category
Click Add, give it a Title and an optional Detail, and save. Logs "Access device category was created". Edit or delete from the row actions later.
Register a device
Open the Devices tab
Switch to Devices. Click Add.
Fill the device in
Give it a Device name, pick its Category, add optional Remarks, and choose the passes — the staff members allowed through this device.
Save — credentials are generated
On save, ERPat generates the device's API key and a hashed API secret automatically. Logs "Access device was registered". The device is enabled by default.
View or rotate a device's credentials
Open the credential dialog
In the device's row, click the key icon (Show Secret) to view the API key the physical device needs.
Rotate the secret
Use Generate new secret to regenerate the API secret — the new value is hashed at rest and the old one stops working. This is logged as a critical event, "Access device API secret was regenerated" (the secret value itself is never written to the log). Update the physical device with the new secret.
Review the access history
Open the Logs tab
Security → Access Logs opens on the Logs tab — the history of access events: which device, which person, an optional remark (e.g. entry / exit), and the timestamp (shown in your local time).
Filter
Narrow by device and by a date range to investigate a specific door or window of time.
Remove a bad entry
If an event was recorded in error, delete it (needs
access_logsaccess). Logs "Access log entry was deleted".
Everything you do here is audited
Each sensitive action above writes a row to the tenant's own system audit log, tagged to the Security category. That trail is your evidence of who granted an exception, unlocked an account, ended a session, or touched a device — review it in the audit-log screens. The exact event names and severities are listed on Reference → Audit-log events.