Returns an object that specifies the currently logged in user. Returns Database.user entity if called server-side.
Core function
Syntax
LoggedInUser()
Description
LoggedInUser is a top-level function and is not associated with any object.
You can use this function to obtain information about the current user. The function returns an object whose properties correspond to those of the current user. These properties include:
Property | Description |
---|---|
The email of the user. | |
FirstName | The first name of the user. |
LastName | The last name of the user. |
UserID | User ID/Login ID New in package 166 |
Name | Synonym of UserID |
ID | The user's unique integer ID number. |
EmployeeNumber | If the database is a Job Manager database, the value of this property will be the user's employee number. If the database is Virtual Ticket-only, the value of this property will be 0. |
Examples
Information about the user can be obtained as follows: