User management variables

Information on users and groups.

Variable Description Data type

This Client User-Name

Name of the user logged to the client where the system variable is displayed.

string

read only

This Client Group-Name

Group of currently logged user

string

read only

This Client ID

Only for HMI Clients. Local and remote clients connected to the same server (for example, runtime) get a unique ID.

short

read only

No Of Remote-Clients Alive

Number of HMI Clients connected to the server

short

read only

JavaScript

From JavaScript, the variables can be accessed as properties of the _SysPropMgr object.

Example:

var sysVar = project.getWidget( "_SysPropMgr" ); var UserName = sysVar.getProperty("This Client User-Name"); var UserGroup = sysVar.getProperty("This Client Group-Name"); var clientId = sysVar.getProperty("This Client ID"); var numClients = sysVar.getProperty("No Of Remote-Clients Alive");