---
title: CurrentUserTeam
slug: neurons-for-itsm/admin-user-help/enu/latest/currentuserteam
createdAt: 2026-07-14T19:16:47.383Z
---

Returns the primary team for the user associated with the current session, as defined in the **Team** field under the **Details** tab on the **Employee Details** form.

:::hint{type="info"}
Use this function to return the name of the primary team.

Use the [CurrentUserTeamNames](docId\:T7D5_BAw6qIOsjT4EAtjv) function to return a list of all the team names.

Use the [CurrentUserTeamIds](docId\:Byf7J6NEbVyHmwl4mRAj_) function to return a list of the team IDs for all the teams.
:::

## Syntax

`CurrentUserTeam()`

## 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

`$(CurrentUserTeam())`

:::Paragraph{indent="1"}
If the current session is for a user who is part of the service desk team, the above example returns "Service Desk".
:::

*CurrentUserTeam() Example*

::Image[]{src="https://api.archbee.com/api/optimize/parib0MC3hVoUNdfQdnac/nWohrbo_d3fAuPUVHckRh_currentuserteam.png" position="flex-start" size="40" initialPath="../../Resources/Images/help-images/currentUserTeam.png" githubPath="Content/Resources/Images/help-images/currentUserTeam.png" showCaption="false" indent="1"}

:::Paragraph{indent="1"}
The above quick action sets the team of the current session as the task team when the task is accepted.
:::
