Users, roles and sign-in
Everyone signs in to WiConnector with their own account, and each account has a role that decides what it may do. Users are managed under System Configuration → Users (administrators only).
First start: create the administrator
The first time WiConnector's web page is opened after installing, there are no users yet, so it shows
Welcome to WiConnector instead of the sign-in screen. Enter a user name (default admin), optionally your
full name, and a password, then Create administrator and sign in.

Do this straight after installing: until an administrator exists, anyone who can open the page can create one.
For unattended installs (Docker, scripted setups) the first administrator can instead come from the configuration. Set both of these, for example as environment variables:
WiConnector__Auth__InitialAdminUser=admin
WiConnector__Auth__InitialAdminPassword=Change-me-123
The account is created at start-up only when there are no users yet, and must choose a new password at its first sign-in. Remove the variables afterwards.
Signing in and out
Open WiConnector and sign in with your user name and password. The sign-in lasts while you use WiConnector and ends after 12 hours without use. To sign out, click your initials at the right of the top bar and choose Sign out.

Your session also ends, and the sign-in screen appears, when an administrator disables your account, signs you out, or sets a new password for you, or when you change your own password on another computer.
One computer at a time
A user can be signed in on only one computer at a time. Signing in on a second computer is refused with "… is already signed in on another computer (address) since 14:08". To move to another computer:
- sign out on the first one, or
- ask an administrator to Sign out that session (System Configuration → Users, open the user), or
- wait: a session left open (computer switched off, browser closed) ends by itself 3 minutes after that computer stops using WiConnector.
Signing in again on the same computer is always allowed. Scripts that sign in for an API token are not counted.
When two people change the same thing
When you start changing a connector, tag, template, user, the WebSocket data service settings or the history settings, WiConnector locks it for you. Anyone else who opens it sees an orange Locked note: who is changing it, on which computer and since when. Their form is read-only and saving is refused.

- The lock ends when you save, undo your changes, close the item or sign out. If your browser closes, it ends after about 90 seconds.
- Someone with the right role can click Unlock and edit and confirm to take the lock over, for example when a colleague left something half changed and went home. The person who had it sees a red note, "Someone took over: you can no longer save these changes.", and their save is refused.
- Deleting a tag group is refused while someone is changing a tag inside it.
Who may take over: Engineers and Administrators for connectors, tags, templates and history settings; Administrators for users and the WebSocket data service.
Changes other people save show up on your screen within about 3 seconds, for example a template renamed on another computer. A form you are in the middle of changing is left as it is; one you have open without changes switches to their saved version.
- Wrong password five times in a row: the account is locked for 5 minutes. An administrator can unlock it earlier.
- Forgot your password: ask an administrator to set a new one.
Roles
| Role | Can |
|---|---|
| Viewer | See tags, live values, history, connector status, modules, logs and activity. Changes nothing. |
| Operator | Everything a viewer can, and write values to tags set to Read and write. |
| Engineer | Everything an operator can, and change the configuration: connectors, devices, tags, templates, Excel import, history settings, backups, starting and stopping modules, log settings. |
| Administrator | Everything, including users, licences and the WebSocket data service (its settings and API keys). |
When you try something your role does not allow, WiConnector says so, for example "The Viewer role cannot do this. Ask an administrator for access."
Managing users (administrators)
System Configuration → Users lists every account with its role, status, whether it is Online now, and last sign-in. Use Find a user to filter by name, email or role. Click a user to open their properties on the right.

Add a user
- Click Add user.
- Enter the user name (2 to 64 letters, digits or
. _ @ -; it is used to sign in and cannot be changed later), and optionally the full name and email. - Choose the role. The text under the list says what the role can do.
- Enter a password twice. Leave Ask for a new password at the first sign-in on so only the user knows their password.
- Click Create user.
Change a user
In the user's properties you can change the full name, email and role, and switch the account off (Disabled: cannot sign in). Click Save. A role change applies at once, even if the user is signed in; disabling an account signs the user out.

Making someone an administrator asks you to confirm first.
Set a new password
Open Set a new password, enter it twice and click Set password. The user is signed out everywhere and, if the box is on, must choose their own password at the next sign-in.
Sign a user out
The properties of a signed-in user show Signed in on (address) since (time). Click Sign out and confirm to end that session, for example so the user can sign in on another computer. Their unsaved changes are lost and their edit locks are freed.
Unlock an account
A locked account shows Locked in the list and a red note in its properties. Click Unlock.
Delete a user
Click Delete user at the bottom of the properties and confirm. To stop someone only for a while, disable the account instead. Their past changes stay in Activity under their user name.
Safety rules
- There is always at least one enabled administrator: the last one cannot be deleted, disabled or given another role.
- You cannot delete or disable your own account, or lower your own role.
Your own account
System Configuration → My account (also in the menu under your initials) shows your name, role and when your password was last changed. To change your password, enter the current one and the new one twice, then Change password. You stay signed in on this computer; other sign-ins end.
Passwords need at least 8 characters with at least one letter and one digit, and cannot contain the user name.
Who changed what
System Configuration → Activity has a User column: every configuration change and every user change is recorded with the user who made it. User changes (created, updated, deleted, password set) are their own kind, User, in the Item filter. Sign-ins, sign-outs and failed sign-ins are written to the log (System category); passwords never are.
Scripts and other programs
Programs that call WiConnector's REST API sign in once and send the token with each request:
POST /api/auth/login {"userName": "...", "password": "...", "issueToken": true}
→ {"token": "eyJ...", "expiresAt": "..."}
GET /api/config/tags with header Authorization: Bearer eyJ...
The token lasts 12 hours and carries the account's role. Create a dedicated account with the lowest role the
program needs. GET /api/health needs no sign-in, for monitoring.
Third-party applications that read live data over the WebSocket data service keep using API keys (see WebSocket data service); they do not need user accounts.