IMDTouchKnowledge BaseShop main store

How-to

Configuring WinCC Unified user administration and function rights

HMI and touchscreens Published 7 min read

Short answer

Build WinCC Unified protection centrally in the project tree under Security settings → Users and roles: create roles with function rights, give users their Assigned roles, and set each screen object's Properties → Security → Authorization. On the first download, clear Keep current user administration data in runtime so a locked or stale user table on the panel does not survive the load; leave it ticked only when panel-side passwords must survive.

On this page
  1. Where Unified keeps users and roles
  2. Set up roles, users and object rights
  3. The locked user that survives a re-download
  4. Worked example: two users, three screens, two roles
  5. What V17, V19 and V20 change
  6. Questions asked

WinCC Unified keeps every user, password and right in one place: the Security settings → Users and roles editor in the TIA Portal project tree. Build the protection there — one role per job, each role carrying its function rights, each user holding their Assigned roles — then set each protected object's Properties → Security → Authorization to the right that should operate it. On the first download, clear Keep current user administration data in runtime so the panel cannot carry forward users from a previous project; the same retained table is what keeps a locked-out user locked through a re-download. The steps below cover TIA V16 through V20, work the published two-user sample project as a checkable access matrix, and list the version differences that change the clicks.

Where Unified keeps users and roles #

Since TIA Portal V16, Unified user management is not set on the device. The project tree editor Security settings → Users and roles holds the whole user and role database, and the TIA Portal documentation describes it as plant-wide central user management, optionally connected to a central user management component. A Unified Comfort Panel and WinCC Unified PC Runtime on the same project therefore evaluate the same roles on every screen. Classic WinCC runtime is different: its accounts live in the runtime user administrator, which the guide on managing WinCC runtime user accounts and password changes walks through — Unified projects do not use that store.

Three system-defined roles ship with every project and cover the common cases:

Role Function rights it carries
HMI_Administrator User Administration, Remote Access, Remote Configuration, Web Access, Monitor, OPC UA, Openness
HMI_Operator Web Access, Operator
HMI_Monitor Web Access, Monitor

Sort the jobs at the station before you add your own roles: one role for operation, one for maintenance, one for engineering usually replaces a pile of one-off rights — the article on designing HMI user access levels for operators and maintenance sets out that split.

Set up roles, users and object rights #

Work through the editor once, in this order:

  1. Create the roles. In Security settings → Users and roles open the Roles tab and select Add new role. With the role selected, tick the function rights it grants in the pane between the main window and the inspector.
  2. Create the users. On the Users tab select Add new user — from TIA V17 the entry reads Add new local user. Enter the username and password, then open the Assigned roles tab in that same pane and tick every role the user holds.
  3. Authorize each protected object. Open the screen, select the button, I/O field or slider, and set Properties → Security → Authorization to the function right that may operate it. Leave the authorization empty on objects that every user and the logged-off state must reach, such as the start screen's navigation.
  4. Add a logon and logoff control. Place a button, and in its Events list assign the system function LogOff to the button's click event. Link a text field to the system tag @UserName so the panel always shows who is logged on.
  5. Protect the logoff button itself. This fixes the V16 case where logoff cleared the screen but raised no login window: with visibility tied to @UserName, a V16 MTP700 Unified Comfort project lost its user-bound displays and showed no dialog. The reported fix: create a dedicated right — Right03 in that project — grant it to every role in use (there, Role01 and Role02), set the LogOff button's Authorization to Right03, and leave the LogOff function on the button's click event. The login dialog then appears again after logoff. From TIA V19 the system function ShowLoginDialog replaces the workaround.
  6. Download with the user table reset. Compile and open the download wizard. On the Runtime values page, clear Keep current user administration data in runtime for the first load onto a device and for any load where users, roles or passwords changed, then download. Left ticked, the device keeps the user administration data it already holds.
  7. Prove it on the bench. Press a protected object with nobody logged on — runtime must refuse the action and open the login dialog. Log on as each user and confirm the objects their roles should reach work and the rest refuse. Log off and confirm @UserName empties and the dialog returns. Finish with a deliberate wrong-password run so the lockout behavior is known before production.

Keep one boundary in mind: object authorization is access control for operators, not a safety function — the emergency stop and any interlock protecting a person stay hardwired or in the safety controller regardless of who is logged on.

The locked user that survives a re-download #

A user locked by failed logins can survive the download that was meant to clear it. Reported on TIA V17.1 against a Unified target: after re-downloading the project, the runtime login still answered Incorrect name or password and the locked user stayed locked, because the download had kept the device's existing user administration data. The fix is the same Runtime values option: clear Keep current user administration data in runtime, download again, and the project's user table replaces what the device holds.

The decision: clear the option whenever a user is locked on the panel or whenever the project's user table changed; leave it ticked only when the device's current users and passwords must survive the load unchanged. The same retention trap exists on other HMI platforms — the article on redownloading an HMI project after a user lockout follows that recovery through.

Worked example: two users, three screens, two roles #

The published user-administration sample project for WinCC Unified defines the case. Inputs: three screens; users Banane (demo password Banane01!) and Orange (demo password Orange01!), both values from the sample, not values to ship; two roles — call them Role1 and Role2 — where Role1 carries the screen-2 right (Right1) and Role2 carries the screen-3 right (Right2); Banane holds Role1, Orange holds Role2; screen 1 carries no authorization.

The rule the runtime applies: a press is granted when the roles the logged-on user holds carry the function right set in the object's Authorization; with no matching right the press is refused and the login dialog opens; an object with no authorization set runs for everyone.

Walked through screen by screen:

  • Screen 1 requires nothing → granted to the logged-off state, to Banane and to Orange.
  • Screen 2 requires Right1. Banane holds Role1, Role1 carries Right1 → granted. Orange holds Role2, which carries Right2 only, so Right1 is missing → refused, login prompt.
  • Screen 3 requires Right2. Orange's Role2 carries it → granted. Banane's Role1 does not → refused, login prompt.
Logon Screen 1 Screen 2 (needs Right1) Screen 3 (needs Right2)
none runs login prompt login prompt
Banane runs runs refused
Orange runs refused runs

Result: exactly one user per protected screen, an open start screen, and @UserName empty until somebody logs on.

The decision behind the matrix: for every object, the rights carried by the user's roles must include the object's Authorization — included, it runs; missing, it is refused with no exception. When a press is refused in your own project the cause sits on one of exactly two sides: add the right to a role the user holds, or change the object's Authorization. From TIA V20 the project search finds authorization attributions, so that audit is one lookup instead of a click-through of every screen.

What V17, V19 and V20 change #

  • TIA V17 — users must exist, and rights can follow one user. The administrator that the standalone WinCC Unified Configuration used to define is gone: a project opens only with users you created (Add new local user) or with UMC (User Management Component) global users. The Roles tab also gains User-specific runtime rights — a right bound to one user rather than to a role, so an object authorized with it runs for that user alone, even when the role is shared across the shift. Where a station is shared, UMC also carries automatic logoff, and the guide on configuring UMC automatic logoff for multiple users in TIA Portal covers that setup.
  • TIA V19 — ShowLoginDialog. User change without leaving the screen: the function logs the user off and opens the login dialog over the screen that stays active. Wire it on the button's click event in place of the LogOff-plus-protected-button workaround of step 5.
  • TIA V20 — auditable rights. The project search finds authorization attributions: enter a function right and the result lists every screen or screen object that uses it and every role linked to it.

Questions asked

Can a WinCC Unified project use domain accounts instead of local users?

Yes. Project-local users and a connected central user management component can work side by side, and that component can be linked to Microsoft Active Directory. Roles and function rights are assigned to the central users under Security settings exactly as for local ones, so the screens themselves do not change.

How do I protect controls inside a faceplate?

Faceplates expose properties of the Authorization type, so each instance of the same faceplate can receive a different function right from the screen that opens it. Set the right on the faceplate instance rather than editing the faceplate for one caller. The instance then behaves like any other protected object: a user whose roles do not carry that right cannot operate it, and runtime asks for a qualified logon.

Does switching users close the screen that is open?

From TIA V19 the ShowLoginDialog system function changes the user without a screen change, so the login dialog opens over the screen that stays active. Before V19 a user change sends the panel back to its start screen, and the next logon happens there — that is the behavior behind an operator being thrown out of a detail screen at every user change. Only the button wiring differs; the roles and rights are unchanged.

Keep reading

  • Troubleshooting

    Why WinCC Unified Login Autofill Ignores Edge Settings

    The login dialog runs in Station Configurator's embedded Chromium browser, which keeps its own saved form data, so Edge's clear-on-close setting never reaches it. Clear or disable auto-fill from the embedded browser's own "…" menu where the version provides it; where it does not, contain the station with the documented kiosk-mode lockdown.

    HMI and touchscreens

  • How-to

    How to Manage WinCC Runtime User Accounts and Password Changes

    Open the WinCC User Administrator at runtime by launching PassCS.exe from a button with a ProgramExecute C action, using the full installed path C:\Program Files\Siemens\WinCC\bin\PassCS.exe. Gate the button with an authorization, and keep operator login, own-password change, and account administration as three separately tested operations. Comfort and Advanced panels are administered in the engineering tool instead.

    HMI and touchscreens

  • Selection guide

    Where WinCC Unified Runtime Can Run and Remote HMI Options

    The Unified runtime executes only on a PC, a Panel IPC, a Unified Comfort Panel or the MD-34 tablet; a browser or Sm@rtServer VNC client displays it and never replaces the host. With no PC in the cabinet, a Unified Comfort Panel is the host and the tablet browser is the client. If a safety function must travel with the operator, no Unified mobile panel exists and the design stays Comfort-based.

    HMI and touchscreens

Why HMI User Credentials Do Not Show in User Administration