Engine.CurrentUser
- Updated2025-07-21
- 1 minute(s) read
Engine.CurrentUser
Syntax
Engine.CurrentUser
Data Type
Purpose
Specifies the user who is currently logged in.
Remarks
Use this property to obtain or set the User object for the user who is currently logged in. If no one is currently logged in, this property returns a NULL dispatch pointer or object reference. After you obtain the User object, call the User.HasPrivilege method to determine whether the user or a user group of which the user is a member has a specific privilege. If you set the property to 0 or NULL , you log out the current user.
If you are developing an application that uses the TestStand User Interface (UI) Controls, use the ApplicationMgr.Login method to change the current user to ensure that the Application Manager control properly sends an event to a user interface.