Administration
The Administration section is responsible for managing user accounts, groups and access permissions to the individual system modules. OmniMES uses a role-based access control model (RBAC) - access is granted to groups, and a user inherits permissions from the groups they belong to.
Users
Menu → Administration → Users
A list of user accounts as a table with the columns: Surname, Login, Group, Phone number, E-mail, RFID, Sign-in and Actions. Filters are available (sort by date/name, search) as well as an Add button to create a new account. For each user the available actions are:
Edit - change the account data and assigned groups, and the Kiosk account switch (described below),
Change password - the server checks the new password (rules below); the change ends the user's sessions on all devices,
Sign out from all devices (sign-out icon) - ends all sessions of the account and its API token, after confirmation,
Delete - before deleting, the system shows a Confirm window with a question and the login of the account being deleted; Yes deletes the account, No cancels the operation. The user's Redash account is removed together with the OmniMES account - if the Redash installation does not allow deleting it, the account is disabled in Redash and its e-mail address can be assigned to a new user again.
Each user belongs to one group - it determines the user's permissions. The RFID field lets you link a proximity card with the account (e.g. for login/identification on the floor).
Protected accounts (from version 4.8.0). Superuser accounts (e.g. omni), the service accounts mcp and redash_bi and the accounts of members of the Admins group can be changed (password, login, e-mail, profile) and deleted only by a superuser. Only a superuser can also assign a user to the Admins group. Such an operation performed by any other user is rejected - when deleting an account or changing a password, a message about missing permissions appears. This rule always applies, regardless of the permission control mode (see Access permissions). The Admins group and its members are not shown in the lists on the Users and Groups tabs.
Sign-in security
Sign-in protects against password guessing, and sessions expire after a time.
Lockout after failed attempts. After 5 failed sign-in attempts within 15 minutes, sign-in to the account is locked for 15 minutes. Each further lockout within a day lasts twice as long. The message does not reveal whether the account exists. At most 20 failed attempts within 15 minutes are accepted from one internet address. In the plant network (private addresses) this limit does not apply, because many people can connect from one address - the account lockout protects sign-in there. When OmniMES runs behind a proxy server (for example with an HTTPS certificate), the implementer can enter its address in the installation configuration (
trustedProxies): the limit then counts each user's address separately.The Sign-in column shows the account state: Locked until … (sign-in) or Operator codes locked until … (operator panel workstation account after failed RFID/PIN codes) with the Unlock button, the number of active sessions, failed attempts, the Kiosk tag and Password change required. Superuser accounts and members of the Admins group can only be unlocked by a superuser.
Password rules. A new password must have at least 12 characters. It cannot be similar to the login or e-mail address, cannot be a common password and cannot be entirely numeric. When the password does not meet the rules, the reason is shown below the field. Existing accounts sign in with their current password.
Sessions. Each sign-in creates a separate session. A session expires after 12 hours without activity and at the latest 7 days after signing in. The sign-in screen then shows Your session has expired. Signing out ends the session on that device.
Kiosk account. Mark a shared shop floor workstation account, e.g. a tablet with the operator panel, in the Edit window with the Kiosk account (session without expiry) switch. Its session does not expire. It ends on sign-out, a password change or Sign out from all devices.
Redash. The user's Redash account has its own random password - it is not the OmniMES password and nobody needs to know it. You open Redash from OmniMES (Dashboards → Alerts, Favorites or Go directly to the tab Redash Dashboards): OmniMES signs you in with a one-time link valid for 60 seconds, and the password never reaches the browser. Changing the password in OmniMES does not change access to Redash. If the Redash sign-in page appears with a message that the OmniMES extension is missing, an administrator must update Redash (the
updated_redashscript).
Every user can change their own password and sign out from all devices in the user menu (person icon in the top right corner): Change password, Sign out from all devices. Changing the password requires the current password and ends the sessions on the other devices.
When the only administrator account is locked, the implementer removes the lockout with a command on the server: docker compose exec api python manage.pyc odblokuj_konto <login> (in the omnimes directory). The rules (number of attempts, lockout and session times, password length) are changed in the installation configuration - see the installer's BEZPIECZENSTWO_API.md file.
Groups
Menu → Administration → Groups
The view is divided into two parts:
Default groups - built-in system groups (e.g. Managers, Operators, Service) - a ready starting point,
Custom groups - groups created by the administrator (e.g. Directors, Clients, Warehouse staff). You add a new group by entering a Name and clicking Add; custom groups can also be deleted.
Groups simplify access management - instead of granting permissions to individual people, you assign them to groups and then add users to the appropriate groups.
Access permissions
Menu → Administration → Access
A panel for the detailed assignment of permissions to groups for specific areas of the system. Permissions are set per system - separate OmniMES and OmniEnergy tabs - and the modules are grouped according to the menu structure:
Preview, Analyse, Reports, Production, Maintenance, System settings, Administration and the standalone App Studio item.
The Maintenance group has the Maintenance (maintenance manager), My work orders (technician), Machine events (formerly History events in the Preview group) and Alarms screens. The Alarms item is shown on both tabs (OmniMES and OmniEnergy - in OmniEnergy at the end of the Preview group) - a permission granted on one tab works in both systems. Moving Machine events and Alarms to the Maintenance group did not change group permissions.
Each module group can be expanded to grant selected groups access to the individual items/actions. This lets you precisely limit the visibility of functions to only those needed by a given department - which increases security and organizes the work.
Permission changes apply to groups - to grant access to a specific person, add them to the appropriate group in the Users tab.
Server-side permission control (from version 4.8.0)
From version 4.8.0 the permissions on this tab are checked not only by the menu but also by the application server (API). How this works depends on the permission control mode, which in an on-premise installation is set in the omnimes/.env file (the OMNIMES_RBAC_MODE variable, see Installation - on-premise):
Mode | Behaviour |
|---|---|
| operations without permission are blocked - default for new on-premise installations from version 4.8.0 |
| nothing is blocked, but the system records the operations that would have been blocked - default for installations updated to version 4.8.0 (unless another mode is set in |
| permissions work only in the menu, as before version 4.8.0 |
In enforce mode, a screen granted to a group means that its members can:
read the data of that screen - e.g. only a group with the Users screen receives the user list,
save changes in the module of that screen - e.g. the Structure screen allows adding and changing plants, lines, machines and statuses, the General configuration screen - saving the system settings, and the License screen - entering the license key.
An operation without permission ends with the message "You do not have permission to perform this operation." Regardless of the granted screens, every logged-in user can save their own dashboard layout, set their default dashboard and order a report. A superuser (e.g. the omni account) has access to everything, regardless of the menu of their group.
In this mode the passwords and tokens stored in General configuration (broker password, mail password, MCP token) are given only to groups whose screens use them - e.g. the live view in Monitoring needs the broker password. The Redash token (the Redash administrator API key) and the API keys of AI connections (General configuration → AI) never reach the browser in any mode. Redash dashboards, queries and the chart wizard work only for groups with the Desktops screen, while the home dashboard and BI dashboard reports show the list of dashboards to choose from - in every mode.
A change of a group's permissions takes effect on the server within 30 seconds at most. The user sees the changed menu and save buttons (e.g. Save in General configuration) after logging in again.
Before you switch an updated installation to enforce mode, check that every group has on this tab all the screens its members work on. The server administrator can list the operations that would have been blocked with the command docker compose exec api python manage.pyc rbac --odmowy (in the omnimes directory). Switching the mode is described in Installation - on-premise, section 8.
A group with the Users screen manages accounts, and a group with the Access screen can grant any group - including its own - every screen. Grant these screens only to people you trust as much as a system administrator.