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

AVEVA™ InTouch HMI

LogonCurrentUser() function

  • Last UpdatedJul 22, 2024
  • 1 minute read

Logs on to InTouch with a user account that is currently logged on to the Windows operating system.

  • InTouch configured with OS security: the user is logged on to WindowViewer.

  • InTouch configured with ArchestrA security: the user must be a member of ArchestrA OS user-based or OS group-based security.

  • InTouch configured with ArchestrA OS user-based or OS group-based security and the user account is configured with smart card credentials: user is logged on using the smart card credentials. The user is logged off if the smart card is removed from the reader.

Category

security

Syntax

IntegerResult = LogonCurrentUser();

Return value

Returns -1 and no change to the values assigned to $Operator, $OperatorName, $OperatorDomain, and $AccessLevel if the logon fails.

Remarks

This function is available only in InTouch scripting, not in ArchestrA client scripting.

Example

IntegerResult = LogonCurrentUser();

See also

AddPermission() function

AttemptInvisibleLogon() function

InvisibleVerifyCredentials() function

IsAssignedRole() function

PostLogonDialog() function

QueryGroupMembership() function

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