---
title: CurrentLoginId
slug: neurons-for-itsm/admin-user-help/enu/latest/currentloginid
createdAt: 2026-07-14T19:16:43.403Z
---

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.

:::hint{type="info"}
Use this function to return the login ID of the user.

Use the [CurrentUserDisplayName ](docId\:Md8JYPRvGjylDy6w4MI8D)function to return the display name (usually first and last name) of the user.
:::

## Syntax

`CurrentLoginId()`

## Enabled For

For a description of the business object categories, see [Notes on "Enabled For"](docId\:u26v9feCFs6iLwA0-PVJd).

| Business Object Category                                                                    | Yes/No |
| ------------------------------------------------------------------------------------------- | ------ |
| Business Rules: Before-Save Rules                                                           | Yes1   |
| Business Rules: Calculation Rules (After Save, with or without Also Recalculate on Load)    | Yes1   |
| Business Rules: Calculation Rules (Before Save or Always, without Also Recalculate On Load) | Yes1   |
| Business Rules: Calculation Rules (Before Save or Always, with Recalculate On Load)         | Yes1   |
| Business Rules: Editing Rules                                                               | Yes1   |
| Business Rules: Initialization Rules                                                        | Yes1   |
| Business Rules: Read Only Rules                                                             | Yes1   |
| Business Rules: Required Rules                                                              | Yes1   |
| Business Rules: Validation Rules                                                            | Yes1   |
| Client Expressions                                                                          | Yes    |
| Object Permissions                                                                          | Yes    |
| Services                                                                                    | Yes    |
| LDAP                                                                                        | Yes    |
| Mobile                                                                                      | Yes    |
| Quick Actions (except UI Quick Actions)                                                     | Yes1   |
| UI Quick Actions                                                                            | Yes    |
| Reports                                                                                     | Yes1   |
| Search/Dashboard without field references                                                   | Yes1   |
| Search/Dashboard with field references                                                      | Yes1   |
| 1. Except in services.                                                                      |        |

## Parameters

None.

## Return Value

:::Paragraph{indent="1"}
Unicode text value.
:::

## Example

:::Paragraph{indent="1"}
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:
:::

:::Paragraph{indent="1"}
`$(CurrentLoginId())`
:::

:::Paragraph{indent="1"}
See the following example:
:::

:::Paragraph{indent="1"}
`CurrentLoginId() `*Example*
:::

::Image[]{src="https://api.archbee.com/api/optimize/parib0MC3hVoUNdfQdnac/bCyke9y7uU3AlCjl8Qm2e_currentloginid.png" position="flex-start" size="40" initialPath="../../Resources/Images/help-images/currentLoginId.png" githubPath="Content/Resources/Images/help-images/currentLoginId.png" showCaption="false" width="1190" height="224" darkWidth="1190" darkHeight="224" indent="1"}
