Security Reference Public

Daily Operations

Step-by-step daily procedures for the ERPat Security module: find and ban the devices staff sign in from, grant and revoke offsite sign-in windows, unlock locked accounts, view and terminate live login sessions, and register, credential, and audit access devices.

Guide version: r1 Module version: 1.1.0 Updated: 2026-08-28 Estimated time: 11 min 10 views 0% helpful
You are viewing version r1 of this guide. View the current version
Using Security

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.

????
You need the matching permission for each task — see the permission column in each section, or the full map on Reference. All lists are standard ERPat DataTables (search, sort, filter, refresh).

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

  1. 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.

  2. 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.

  3. 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.

????
Keep windows short. An offsite grant weakens the IP whitelist for that person for its whole duration. Set the end date to the last day it's genuinely needed, then let it lapse or revoke it early.

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).
????
Scoped by permission. If your Offsite Access permit is set to Specific members rather than All, the list shows only the grants for the people you're allowed to manage (plus your own). Filter by department using the toolbar filter.

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

  1. 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.

  2. 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.

  3. (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

  1. 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.

  2. 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.

  3. 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".

  4. 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".

⚠️
Terminating a session signs the user out. They'll need to log in again on that device. "Logout All Devices" affects every device the user is signed in on — use it deliberately.

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

  1. Open the Categories tab

    On Security → Access Logs, switch to Categories. Categories group your devices (e.g. "Main entrance", "Server room", "Parking gate").

  2. 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

  1. Open the Devices tab

    Switch to Devices. Click Add.

  2. 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.

  3. 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

  1. Open the credential dialog

    In the device's row, click the key icon (Show Secret) to view the API key the physical device needs.

  2. 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.

????
Rotate on suspicion. If a device is lost, decommissioned, or you suspect its credential leaked, rotate the secret (or delete the device) right away — a valid key/secret is what lets a device report access events.

Review the access history

  1. 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).

  2. Filter

    Narrow by device and by a date range to investigate a specific door or window of time.

  3. Remove a bad entry

    If an event was recorded in error, delete it (needs access_logs access). 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.

Next steps

Report a content problem