IMD SolutionComputing LibraryShop main store

Explainer

groov View user info in Node-RED: what actually works

Edge computing and IIoT Published 7 min read By IMD Solution engineering team

Short answer

No documented groov View or groov Manage endpoint returns the username of the operator signed in at a groov Server for Windows HMI, so Node-RED 3.0.2 cannot pull it as-is. Treat authenticated groov Manage log retrieval as a testable candidate only, and bind operator, station and production entry together at the HMI when the audit trail must be right.

On this page
  1. What the documented groov APIs actually expose
  2. Three sources that answer three different questions
  3. The candidate: authenticated log retrieval through groov Manage
  4. The four-station test: one latest-event record against four open sessions
  5. Bind the operator at the HMI instead
  6. Verify the whole chain before release
  7. The decision
  8. Questions asked

Node-RED cannot pull the signed-in operator's name out of groov View. None of the documented interfaces for groov View or groov Server for Windows exposes the current dashboard session as a value a flow can read, so a Node-RED 3.0.2 flow has no documented input that names the person at the HMI. What the documentation does give you is API-key authentication for the groov View and groov Manage REST APIs, and an authenticated HTTP route to system and software logs through groov Manage. Neither returns who is standing at the station right now. The working design is therefore: bind the operator to the production entry at the HMI itself — operator, station and entry number captured together at submission — and treat log retrieval as a testable candidate, never as the identity source.

What the documented groov APIs actually expose #

Two REST APIs are documented in this ecosystem, and they authenticate the same way: every request carries an API key tied to a user account. On a groov EPIC, every user account has an API key associated with it. Keys are managed in groov Build under Configure > Accounts: create a new user on the Users tab, enter a username and select a role, and an Admin can read each account's API key there. The groov Manage REST API uses the same model, a key per user.

Both APIs authenticate the caller of the request. Neither documented getting-started guide shows an endpoint that returns the identity of the person viewing a groov View dashboard, and neither is documented for that purpose on groov Server for Windows. The documented getting-started path for the Node-RED nodes for groov View is about setting up your groov View project and configuring it within the nodes — again, no session-identity feed. An API key proves which account made the request; it never tells you which human is standing at a station.

Three sources that answer three different questions #

Keep the candidate sources apart before you test anything, because they answer different questions:

Source What it answers Symptom when it is the wrong source
Active groov View session who is signed in at this station right now blank, stale, or an unexpected account name
System or software log that a sign-in happened, at a recorded time entry arrives without a username, or paired with a later sign-in
Production record submitted at the HMI who made this specific entry the right user attached to the wrong station

The audit requirement is the third row: an operator identity bound to a specific entry, at a specific station, at the moment of submission. A session value answers who is signed in now; a log answers that a sign-in happened; neither answers who made a given entry unless the correlation is proven at submission time. Logic added downstream in Node-RED cannot repair a binding that was never captured at the source.

The candidate: authenticated log retrieval through groov Manage #

The one documented route that touches account-adjacent data is an authenticated HTTP request to groov Manage. You log in to groov Manage, navigate to Info and Help → Logs, and select from more than a dozen software and system logs; any HTTP client can fetch them, Node-RED included, provided each request is properly authenticated. That makes log retrieval a testable candidate for a sign-in event — nothing more.

Judge it against three limits before you build. A log is a record of past events, not a live-session interface: it can be buffered, rotated, or restricted to selected event categories. A log fetched on a schedule lags the sign-in by the polling interval plus whatever buffer delay the log itself carries. And the published documentation for groov Server for Windows does not state that any of those logs contains a username together with enough context to tell stations apart — that is exactly what the test below has to establish, log by log, on your release.

One safety rule belongs here: authenticate every request the documented way, with an API key, and never send an account password to an endpoint whose authentication and access scope you have not verified in vendor documentation.

The four-station test: one latest-event record against four open sessions #

The inputs, with their units and where each comes from:

  • 4 stations, operators moving freely between them — the line this question is about.
  • 4 production entries, one submitted at each station inside the test window — the declared example workload, one entry per station.
  • 1 record — a candidate source that returns only the most recent sign-in event.
  • The requirement: every entry must carry a username and a station identifier, bound at the moment of submission.

The rule in words: a source qualifies only if, at the instant each entry is submitted, it yields the identity of the session that made that entry. A source that returns one latest-event record holds exactly one identity, however many sessions are open. Coverage equals the records available divided by the sessions it must distinguish.

The arithmetic: 4 stations in use means 4 concurrent sessions to distinguish. The latest-event source supplies 1 record. 1 ÷ 4 = 0.25, so at most 1 of the 4 entries can carry a fresh, correct identity; the remaining 3 entries (4 - 1 = 3) inherit a reused name or arrive with none.

The result: coverage of 1 entry in 4 — 25 percent — against a requirement of 4 in 4.

The decision: 25 percent is below the 100 percent an audit needs, so the latest-event path fails and you do not build on it. Bind operator, station and entry at the HMI instead. Note the other side of the threshold: even a source that passed the count — 4 records for 4 sessions — would still have to prove timestamp-exact correlation to entries before serving as the identity source. Passing the count is necessary, not sufficient.

Bind the operator at the HMI instead #

Capture the operator with the entry, in the View project itself. Give each station a fixed station identifier, configured on that station, never inferred from the username — operators move. Have the operator chosen or entered with each submission (or selected at session start and re-confirmed at each entry), so the production message reaches Node-RED carrying operator, station, entry number and submission time as one record.

Keep identity acquisition separate from production submission, and build the flow in stages: ingest the identity, validate it, attach it to the production message, then transmit. Validate means the field is non-empty, it is not the previous entry's name carried over after a sign-out, and its timestamp is sane. When the identity is missing or stale, reject the submission or hold it in a quarantine path — never silently reuse the previous operator.

If you ever build such an operator screen as a Node-RED dashboard rather than in groov View, what per-user login on a Node-RED dashboard really requires sets out what a genuine per-user login takes. When the entry and its identity then flow outward to a database, how to log production data from a panel PC to SQL Server shows the logging path end to end.

Verify the whole chain before release #

Stamp every record with its source at the moment it is created — the discipline behind identifying the source gateway in a shared historian database — so the stations stay tellable apart afterwards. Then run the chain end to end:

  1. Create two distinct test accounts, for example op-test-a and op-test-b, and a uniquely numbered test-entry format.
  2. At every station, sign in with the first account, note the station and the time, submit one test entry, and inspect both the candidate log record and the Node-RED input.
  3. Repeat with the second account, at another station, while the first session is still signed in elsewhere.
  4. At the Node-RED boundary, check username, station identifier, entry number and event time. At the outbound boundary, check the exact payload. Then confirm the receiving application stored the same identity with the same entry.
  5. Run the failure cases: identity missing, an account change between two entries, and the receiving application unreachable. Each must produce an explicit exception or a held record — never a carry-forward of the previous operator.
  6. Compare the source event time against the submission time and confirm the path is timely enough for the process.

Release the workflow only when operators cannot accidentally submit under another user's retained session and the records remain distinguishable across every station on the line.

The decision #

  • If the audit trail must attribute each production entry to an operator: capture the operator at the HMI, bound to the entry and the station at submission. On the documentation published to date, no endpoint hands that username to Node-RED 3.0.2.
  • If you want a supporting audit artifact: test groov Manage log retrieval, log by log, with the coverage count and the controlled sign-in test, and use it only for what it provably shows on your release.
  • If neither is in place yet: do not let the flow guess. A held record is recoverable; a wrong operator name in an audit trail is not.

Questions asked

Does an API key tell Node-RED which operator is at the station?

No. An API key identifies the account that signed the HTTP request, not the person viewing the dashboard. If every station shares one integration account, every request looks identical no matter who is at the HMI, so create a separate API user per integration. API users are created in groov Build on the Accounts configuration page, where an Admin can read each account's key.

Why does a login log entry not prove who submitted a production number?

A log entry records that a sign-in happened, not which entry followed it. Between the sign-in and the submission there can be a station move, a sign-out, or a second operator at the same station, and a polled log can still be catching up when the entry arrives. Only a value captured together with the entry, or a timestamp-exact correlation you have verified on your own release, ties the two.

The operator name is wrong after operators switch stations. What changed?

The flow is reusing a stored session value, or matching a delayed log event to a newer entry. Test account changes at every station, and reject any submission whose identity cannot be matched to the current session. If you cannot confirm a documented account-data interface for groov Server for Windows, take the product configuration, the Node-RED 3.0.2 version and a minimal reproduction to the vendor's official support channel.

Does this change if the HMI runs on a groov EPIC instead of a Windows PC?

The documented REST APIs are written around groov EPIC, where every user account has an API key, but they still authenticate the caller, and none of the documented getting-started material shows the dashboard viewer exposed as a readable value there either. The design rule does not change: capture the operator together with the entry at the screen, whichever product renders it.

Keep reading

  • Troubleshooting

    Why Node-RED HTTP requests throw AggregateError after an update

    An AggregateError from the HTTP request node wraps the runtime's failed connection attempts; it is not a diagnosis. A passing ping clears ICMP, not outbound TCP 443 or TLS. Log the nested error object, test DNS, TCP 443 and certificate trust in order from the device, and while the hop stays broken, relay the messages over MQTT to a second Node-RED host that completes the request.

    Edge computing and IIoT

  • How-to

    Collect drive parameter data without master communication

    Node-RED reads ctrlX DRIVE and IndraDrive parameters through the ctrlX CORE Data Layer and the Drive Connect app, with no changes to the master control program. Same-subnet Ethernet covers every fieldbus case except EtherCAT, EtherCAT needs a configured EoE tunnel, and drives behind a gateway controller need a route on the collection CORE plus an explicit registration per drive address.

    Edge computing and IIoT

  • Troubleshooting

    Node-RED ControlLogix offline: TCP timeout after ping works

    The logged TCP connection timeout means Node-RED never completed the TCP session to the controller on port 44818, and ping success proves nothing about that session. Test the TCP connection from the Node-RED host, check host firewall and network ACLs, then controller connection limits — and leave tag names alone until TCP connects.

    Edge computing and IIoT

Why MQTT setpoint gating belongs in CODESYS, not the client