Troubleshooting
Why invalid login attempts lock an HMI user as unauthorized
Short answer
The Number of attempts setting under Runtime settings > User administration decides how many wrong passwords move an HMI user into the unauthorized group. Clearing the enable-limit checkbox gives unlimited attempts for commissioning, but it restores no user already moved there.
On this page
- Why does a wrong password move an HMI user to the unauthorized group?
- Where is the login attempt limit set in TIA Portal?
- How do you disable the login attempt limit for commissioning?
- How do you get a user out of the unauthorized group after a lockout?
- Does WinCC Unified use the same login attempt limit?
- Should the login attempt limit stay disabled after handover?
- Questions asked
SIMATIC Basic Panels, Comfort Panels and WinCC Runtime Advanced stations count wrong passwords per user and move the account into the unauthorized group once the failures reach the number configured under the HMI station's Runtime settings, User administration. The monitoring is already enabled on a newly created station, which is why a commissioning password chase can suddenly strip an account of its permissions. The fix depends on where you are. To stop the lock during commissioning, clear the checkbox that enables the limit and download the project; to recover a user the panel has already moved, reassign that user's group through user administration — the checkbox does neither. This article gives the exact path in the project, the recovery steps at the machine and a worked example for setting the count before handover.
Why does a wrong password move an HMI user to the unauthorized group? #
The runtime counts each failed login per user, and when the failures reach the number in the "Anzahl ungültiger Login-Versuche" (number of invalid login attempts) field, it assigns that user to the "Unberechtigt" (unauthorized) group instead of its configured group.
The move is a group reassignment, not a station lockout: the panel keeps running, the screens stay reachable and every other user keeps the groups you configured. What the reassigned user loses is everything the unauthorized group has no permission for — on a project straight out of the wizard, that is effectively every protected operation, including user administration. That is why the symptom reads like a permissions fault rather than a login fault: the password still authenticates, but the buttons behind it stop working.
Read the state before you change anything. If the runtime itself has stopped or the whole station is down, that is a different fault — fix it first, because login-attempt settings repair nothing that is not running.
Where is the login attempt limit set in TIA Portal? #
Double-click the "Runtime settings" editor for the HMI station in the project window and open "User administration": the limit is the "Number of attempts" setting in the "Lock User" area, together with the checkbox that enables it.
That wording follows the November 2022 documentation for this function; your installed version and language can label the same controls slightly differently, and the help built into your version is the reference for its exact text.
Read the number your project carries instead of assuming one: the value travels with the project, so two identical panels can enforce different limits if their projects differ. The count is per user, not per panel — the configured number is how many failures one account gets before that account is moved, and every other account is unaffected.
How do you disable the login attempt limit for commissioning? #
Clear the checkbox next to the attempts field — "Grenze für Login-Versuche aktivieren" (enable limit for login attempts) on a German installation — and download the changed project to the station; from then on the runtime allows unlimited login attempts and can no longer move a user into the unauthorized group.
- Open the station in the project tree, double-click "Runtime settings" and select "User administration".
- Clear the checkbox that enables the limit. Leave the attempts number untouched — you will re-enable it at handover.
- Compile and download the project to the panel or RT station and restart the runtime.
- Prove the change at the machine: enter a wrong password more often than the old count allowed, then log in correctly and confirm the protected operations work.
- Record the checkbox state in the commissioning documents so the limit goes back in before handover.
A checkbox cleared in an offline project changes nothing at the machine: the panel runs the last downloaded project, so the change takes effect only after the transfer in step 3. Check before that transfer what it does to user data — a download that replaces the station's stored users can take the other accounts down with it, the overwrite trap described in keeping PanelView Plus user passwords after an MER download.
How do you get a user out of the unauthorized group after a lockout? #
Clearing the checkbox restores nothing: a user already sitting in the unauthorized group stays there until an account that still holds the user-administration permission moves that user back to its intended group, because the checkbox only changes how future failed entries are counted.
- Log in with an account that still has the user-administration permission. If the moved user is your only administrator, the project has no in-runtime recovery path left — go straight to the last bullet.
- Open the station's user-management screen at runtime and read the moved user's group. The unauthorized group confirms this fault; any other group means the account has a permissions problem, not a lockout, and the rest of this section does not apply.
- Move the user back to its intended group, log that user in again and confirm the protected operations work. The password needs no change — the lockout never touched the credential.
- If no authorized account remains, recover by the route the panel manufacturer documents for lost administrator access, or through its official support channel. Do not improvise a reset: an undocumented one can cost you the project data along with the lockout.
Then design so one account cannot strand you again: keep at least two accounts with the user-administration permission on every station, and put the runtime mechanics — adding users, changing passwords without a download — on a protected screen your team can reach. The walkthrough on managing WinCC runtime user accounts and password changes covers how to build and use that screen.
Does WinCC Unified use the same login attempt limit? #
No: WinCC Unified PC Runtime keeps its local user administration under "Security settings > Users and roles" in the engineering project and ends runtime login sessions with a "Runtime timeout", so the Runtime settings path above finds nothing on a Unified target.
Identify the target before you hunt for the checkbox: this limit belongs to the Classic generation — Basic Panels, Comfort Panels and WinCC Runtime Advanced stations. A Unified project structures security in its own editor and drives session behavior with the timeout, so the Classic rule does not carry across; confirm how your Unified version counts repeated failed entries in its own security documentation before you rely on either behavior.
Should the login attempt limit stay disabled after handover? #
No: before handover, select the enable-limit checkbox again and keep the number in the attempts field, because with the limit off anyone at the panel can try passwords without end, which is exactly what the function exists to stop.
Worked example, with illustrative values: your commissioning log shows the worst run of wrong entries is 3 in a row, caused by a keyboard-layout mismatch. Set the attempts field to 5, which leaves 5 - 3 = 2 spare failures before the runtime moves a user into the unauthorized group. Setting 10 would leave 10 - 3 = 7 spare failures, a guessing budget more than double the observed worst run, while setting 3 leaves 3 - 3 = 0 spare and locks the user on the very run you watched during commissioning. Size the count from your own log the same way — worst observed run plus a small margin. Where the station guards safety-relevant operator functions, treat the enabled limit as part of the access concept rather than a comfort setting, because that guessing budget is what stops an unauthorized person from reopening permissions at the panel.
- Commissioning: checkbox cleared, unlimited attempts, change downloaded and proven at the machine.
- Production: checkbox selected, count sized from the log — 5 in the example — and a second administrator account in place.
- A user already in the unauthorized group: move the user back to its intended group first; the checkbox decides future counting and restores no one.
Questions asked
What number sits in the attempts field on a newly created station?
A new station is created with the limit already enabled, but the documentation behind this article specifies the mechanism, not a factory count, and a project inherited from a template carries that template's number. Open Runtime settings, User administration and read the value your project actually enforces.
Does the failed-attempt counter reset after a successful login?
The documentation behind this article defines the threshold, not the reset behavior, so treat the count as cumulative per user until your own test says otherwise. Prove it at the bench: set the attempts field to 2 on a test project, enter one wrong password, log in correctly, enter a wrong one again, and watch whether the second failure moves the test user into the unauthorized group.
Why do operators hit the limit with a password they swear is right?
Check the entry before the account: keyboard layout is the classic cause, because a panel running a QWERTZ layout turns a QWERTY operator's z and y into wrong characters, and an on-screen keyboard can send different characters than the physical one. A password changed in the project but never downloaded to the station fails the same way. The limit is then doing its job — fix the entry, not the count.
Can I attach permissions to the unauthorized group instead of moving the user back?
Even if your version lets you edit group permissions, the unauthorized group is where the runtime sends every user who exceeds the count, so any permission you attach to it goes to the next person who mistypes a password, not only the one you meant to help. Keep the unauthorized group empty of permissions and restore users by moving them back to their intended groups.