Reference > Expressions > Built-in Functions > Current User Functions > CurrentLoginID

CurrentLoginId

Returns the login ID for the user associated with the current session. This is the LoginID field from the Details tab in the user profile.

  • Use this function to return the login ID of the user.
  • Use the CurrentUserDisplayName function to return the display name (usually first and last name) of the user.

Syntax

CurrentLoginId()

Enabled for

Search/Dashboard Yes
Business Rules Yes
Quick Actions Yes
Workflow Objects Yes
Reports No

Parameters

none

 

Return Value

Unicode text value.

Example

To find all incident instances that are assigned to the user associated with the current session, in the Advanced Search page, select the Owner field and in the text box enter:

$(CurrentLoginId())

See the following example:

CurrentLoginId() Example