---
title: CurrentUserOrganizationalUnit
slug: neurons-for-itsm/admin-user-help/enu/latest/currentuserorganizationalunit
createdAt: 2026-07-14T19:16:52.317Z
---

Returns the RecID (unique record identifier) of the organizational unit of the user associated with the current session.

:::hint{type="info"}
Use this function to return the RecID of the organizational unit of the current session.

Use the [CurrentUserOrganizationalUnitName](docId\:vQU1MogPcu8CqihXK5p4N) function to return the name of the organizational unit of the current session.
:::

## Syntax

`CurrentUserOrganizationalUnit()`

## 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"}
Text value.
:::

## Example

`$(CurrentUserOrganizationalUnit())`

:::Paragraph{indent="1"}
In one example, the above function returns 4A05123D660F408997A4FEE714DAD111.
:::

*CurrentUserOrganizationalUnit() Example*

::Image[]{src="https://api.archbee.com/api/optimize/parib0MC3hVoUNdfQdnac/fu50-9_ANC6VC4NGL7G9f_currentuserorganizationalunit.png" position="flex-start" size="40" initialPath="../../Resources/Images/help-images/currentUserOrganizationalUnit.png" githubPath="Content/Resources/Images/help-images/currentUserOrganizationalUnit.png" showCaption="false" width="626" height="366" darkWidth="626" darkHeight="366" indent="1"}

:::Paragraph{indent="1"}
The above is an example of using this function in a quick action.
:::
