Managing security by script
The scripts interact with the system security management through the Security class, which exposes properties and methods for managing users with custom procedures.
Properties and methods of the Security class are predefined functions for global use and do not require to instantiate the Security class for use.
The properties exposed by the Security class are:
|
CurrentSecArea |
Sets / queries the area of the current logged in user |
|
CurrentSecLevel |
Sets / queries the security level of the current logged in user |
|
CurrentUser |
Sets / queries the user name of the current logged in user |
|
LogInTime |
Sets / queries the time stamp of the current logged in user |
|
MaxConnectionTime |
Sets / queries the current connection timeout, after which the user will be automatically logged out |
Note: the same information is made available by the relevant Local Variables (see chapter "Expressions and Scripts").
The class also exposes methods for running the login and logout:
|
Log (User, Password) |
Connects the specified user using the specified password. |
|
LogOut |
Ends the current connection by removing all access privileges associated with it. |
For more information about the class Security refer to the Guide Basic Script.