How to access the currently logged-in user in expressions
You can access the currently logged-in user as follows:
| Access via | Expression | More information |
|---|---|---|
OCL |
Session.allInstances->first.login |
About OCL |
COM |
|
Information about COM |
VB-Script |
|
Information about VBScript |
Python scripts |
The currentlogin() method of the module vtcapp can be used to determine the current 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 varLogin variable.
|
Information about user rights |