Why is the currently logged user on not shown at Runtime?
You can use the internal WinCC tags "@CurrentUser" and "@CurrentUserName" to have the currently logged on user displayed in a process picture at Runtime.
The internal WinCC tag "@CurrentUser" contains the logon name of the currently logged on user. This is the name that the user uses to log on. Here it does not matter whether or not the WinCC option SIMATIC Logon is used.
The internal WinCC tag "@CurrentUserName" contains the complete name of the currently logged on user. The complete user name is specified in the Windows user administration.
- The internal WinCC tag "@CurrentUserName" is only supplied with a value when the WinCC option SIMATIC Logon is used for logon. However, the "@CurrentUserName" tag is also available for dynamization if SIMATIC Logon is not used. But in this case the "@CurrentUserName" is not supplied with a value.
- If SIMATIC Logon is used for logon and the complete user name is not defined in the Windows user administration or contains only empty spaces, then at Runtime the "@CurrentUserName" tag contains the logon name of the currently logged on user.
Using the OS project editor you can define whether the value of the internal tag "@CurrentUser" (user ID) or "@CurrentUserName" (user name) is to be displayed in the overview ("@Overview1.pdl"). This setting in the OS project editor is in the "Layout" tab, in the "Display" area. Further information on this topic is available in the WinCC Information System:
- Up to PCS 7 V7.x under "Working with WinCC > Creating a User Administrator > WinCC Options for the User Administrator > SIMATIC Logon Option > How to use the SIMATIC Logon Service with WinCC".
- From PCS 7 V8.x onwards under "Working with WinCC > Creating a User Administrator > Central user administration with SIMATIC Logon > How to use SIMATIC Logon in WinCC"
If you use the "@CurrentUserName" tag (user name) for displaying the user name in the process picture, but do not use SIMATIC Logon, the "@CurrentUserName" tag is not supplied with the name of the current user. Then an empty character string is displayed as the user name at Runtime. Please note that the display of the complete user name can only be used in combination with SIMATIC Logon.