The user management allows to set up access protection for data and functions within the Runtime to protect the applications against unauthorized operation. in industry automation play very important role.in hmi we able to monitor and operate these process accordingly, the processes are visualized through HMI operator panels. if hmi operated by any unauthorized persons can directly manipulate the process or steal know-how.To prevent this process have to be protected against unauthorized access. WinCC (TIA Portal) allows you to implement this feature using the integrated user administration and thus increase the security of the facility. in this article we understand wincc hmi user management configuration in tia portal with simple example.
USER A user is an individual or entity that interacts with a HMI application. You can create different type of user in hmi. Each user can have specific roles or permissions based on their account type. for example a user operator is only Responsible for operating machinery or systems during a shift. an operator user have No access to modify system configurations or view sensitive data. user groups A user group is a collection of users in a system who share similar roles, responsibilities, or permissions. It is a mechanism used to simplify the management of access control by grouping users with common access needs. User groups make it easier to assign and manage permissions, especially in complex systems with many users. authorizations Authorization is the process of determining whether a user or a system has permission to access specific resources, perform particular actions, or use certain functionalities within an application or system. It defines what a user can and cannot do after they have been authenticated (i.e., their identity has been verified).
open wincc tia portal and in project navigation double click "User administration". a user administration window open. here you can add, create, delete or modify user, user group. for creation of user in this window follow these step
in wincc tia portal The user groups "Administrator group" and "Users" are already configured by default and can be renamed but not deleted. For configuration of user group in wincc tia portal follow these steps
in this step we assign user to user group. we already create operator1 and operator 2 user and we assign both user to operator group.All newly created users are assigned to the "Users" group by default. follow these steps to assign user in user group
in authorizations we set permission to access specific resources, perform particular actions, or use certain functionalities within an application or system. for configuring authorizations first create authorization and then assign authorization to create authorization follow these steps
after creating authorization next to assign authorizations to a user group. follow these steps
in runtime of hmi you can alse change user administrator setting. Open runtime setting from prject navigation and select user administration here you setting for runtime.
in a screen add two button and rename button to login and logout as shown in below image.
now in login button property select button press event and Open the dropdown list box and navigate to "User administration" Select the "ShowLogonDialog" function. The login dialog has thus been configured.
now select logout button. open button press event property in drop down select user administration and then select logoff.
In the Runtime, when you press login button a login dialog open with user name and password here enter user name and password to login. for log off simply press log out button current user log off. An incorrect login attempt causes the system to display the message "Invalid password or user name".
you can get user name in runtime by a system function. first configure tag for username. open tag table and add a tag to store user name. add username tag in tag table select wstring data type, change length to 50.
now add a button and rename to get user name. add a input output field and select username tag to input output field.
select get user name button and open event property select drop down in user administration select get username select username tag.
now start runtime. press to login button and enter user name and password and press ok when you press get user name current login user name show in input ouput field.
Access protection refers to a set to prevent unauthorized access to resources, systems, or data. Its primary goal is to ensure that only authorized users can interact with or modify process. to setup access protection of any item select item open item property. in item property select security. Under Runtime security, click the dropdown list box and select the authorization group.
When the button is pressed or operated during the Runtime, the login dialog opens prompting the user to log in unless the user is already logged in. If the user authentication has been successful, the configured system function is executed otherwise item is disabled. item enable only if login success fully to user.