Reading Permissions of the Current User
Information about the current user's permissions can be read in runtime with the following tag syntax:
?Category:comparisonString
The table below describes the two parts of this syntax:
Part Name |
Description |
---|---|
Category |
The permissions category. It can be one of these values:
|
comparisonString |
The specific point, alarm, file, etc. that you want to read the permissions of. |
Here are some examples tags:
Example |
Description |
---|---|
?Alarm:LowPressure |
The current user's permissions regarding the LowPressure alarm. |
?DataPoint:svrsim:reg float "CoolantFlowRate" |
The current user's permissions regarding the OPC tag with a point name of: svrsim:reg float "CoolantFlowRate" |
The value of the tag is a bitmask of these values:
Bit Number |
Permission |
Value |
---|---|---|
0 |
Read |
1 |
1 |
Write or Create |
2 |
2 |
Modify |
4 |
For example, if ?DataPoint:svrsim:reg float "CoolantFlowRate" returned a value of 3, that means the user can both read and write to that point.