$AccessLevel system tag
- Last UpdatedJun 17, 2024
- 1 minute read
Defines the access level of the currently logged-in user.
Category
security
Usage
$AccessLevel
Remarks
The value for this tag is determined by the access level assigned to the currently logged-in user's security profile within the InTouch HMI. This profile can be accessed using the Configure Users menu in WindowViewer.
The actual numeric value of $AccessLevel has no meaning to WindowViewer, except that a value of 9000 or greater indicates administrative privileges and enables the Security menu within WindowViewer. Use the $AccessLevel system tag to further customize security within the system.
Data Type
Integer (read only)
Valid Values
0 through 9999
Example(s)
The following statement is used for the visibility link to make an object, such as a button, visible based on the logged on user's access level:
$AccessLevel >= 2000;
{Objects can have a "disable" link associated with them, with the expression based
on $AccessLevel.}
$AccessLevel < 5411;
IF $AccessLevel <=500 THEN
Show "Access Denied"; {popup window denying access}
ELSE
Show "Access Granted"; {popup window granting access}
ENDIF;
See Also
$Operator, $OperatorEntered, $PasswordEntered; $ConfigureUsers