Scripting Aspect - Function to know current user Permission
Currently using below script to know the User Role for log on user. This works well.
Similar code is needed to know if log on user has specific Permission (Eg. Tune, Force, or any custom Permission).
function IsUserLogon
dim m_user
set m_user = me.CurrentUser
IsUserLogon= m_user.IsInRole("Application Engineer Role")
end Function
Similar code is needed to know if log on user has specific Permission (Eg. Tune, Force, or any custom Permission).
function IsUserLogon
dim m_user
set m_user = me.CurrentUser
IsUserLogon= m_user.IsInRole("Application Engineer Role")
end Function
Answers
A role is global per user session.
A permission is local per object.
Maybe it possible to probe the #IsWritable and #IsReadable OPC DA sub properties?
E.g the Alarm Global Properties exist on every object in a system and eg. require Operate permission to write to the IsAlarmUnacknowleded property (used to acknowledge alarms)
A permission is local per object.
Maybe it possible to probe the #IsWritable and #IsReadable OPC DA sub properties?
E.g the Alarm Global Properties exist on every object in a system and eg. require Operate permission to write to the IsAlarmUnacknowleded property (used to acknowledge alarms)
Add new comment