How to access the currently logged-in user in expressions
The currently logged-in user can be accessed as follows:
| Access via | Expression | More information |
|---|---|---|
| OCL | Timsession.allInstances->first.login |
About OCL |
| COM |
|
Information about COM |
| VB script |
|
Information about VBScript |
| Python scripts |
The currentlogin() method of the vtcapp module can be used to determine the currently logged-in user:
|
About Python |
| SQL Expression |
|
About SQL folders |
| User rights |
In expressions on user rights, the current login can be accessed via the variable varLogin.
|
About user rights |