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

CurrentUserTeam

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.

  • Use this function to return the name of the primary team.
  • Use the CurrentUserTeamNames function to return a list of all the team names.
  • Use the CurrentUserTeamIds function to return a list of the team IDs for all the teams.

Syntax

CurrentUserTeam()

Enabled for

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

Parameters

none  

Return Value

Text value.

Example

$(CurrentUserTeam())

If the current session is for a user who is part of the service desk team, the above example returns "Service Desk".

CurrentUserTeam() Example

The above quick action sets the team of the current session as the task team when the task is accepted.