Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

UserInfo

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets information about the operator who is currently logged-in to the system.

Syntax

UserInfo(nType)

nType:

The type of user information:

0 - Flag to indicate whether any user other than a view-only user is logged in

1 - The login name of the user

2 - The full name of the user

3 - The time the user logged in

4 - The time the user entered the last command

5 - The number of commands entered by the user

6 - The type of login:

• "0" indicates that the current user is a view-only user.

• "1"indicates there is Plant SCADA or Windows non-default user explicitly logged in.

• "2" indicates the logged on user is a Plant SCADA default user (control client auto login Plant SCADA user).

• "3" indicates the logged on user is a Windows default user (control client auto login windows user).

Return Value

The information (as a string). If an error is detected, an empty string is returned.

Login

Example

/* Check if a user has logged on. If so, get the user's full name and the number of commands they have performed. */
String sName;

String sCount;

IF UserInfo(0) = "1" THEN

sName = UserInfo(2);

sCount = UserInfo(5);

END

See Also

Security Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in