---
schema_version: "1"
id: 8e8d287d3e94c0f2e4c9256476e68cb7dc0f5479ba27d61d9275b4a72c077486
title: Team and User Objects in Salesforce Spiff Functions
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/spiff_functions_team.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.spiff_functions_team.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: e54a84188efcc61f180c9667e3b3e2ff37541cbc76e8a7e703c6e95e78a0bf68
description: Reference teams and teams in some Salesforce Spiff functions.
products:
  - Sales Cloud
  - Sales Enablement
release: "264"
---
# Team and User Objects in Salesforce Spiff Functions

Reference teams and teams in some Salesforce Spiff functions.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: both Salesforce Classic (not available in all orgs) and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available for an additional cost in: <strong>Professional</strong> Edition with Web Services API Enabled</td></tr></tbody></table>

## Teams

A team object in Salesforce Spiff includes the entire team and its data such as name, managers, and members. For example, the `direct_manager_of()` function returns the objects for the teams that a user manages. To return an attribute of the team, such as the team name, add the `transform_list()` function or dot syntax.

These functions return team objects.

- `direct_manager_of()`
- `direct_member_of()`
- `manager_of()`
- `member_of()`
- `team()`

The `team()` function accepts a team name and returns a team object.

These functions require a team object as input.

- `managers()`
- `members()`
- `users_in_team()`

Combine these functions other functions that return a team object.

```
members(team("AE - Team"))
```

## Users

Reference the `user` keyword when you create a calculated field on the User object. The `rep` keyword also references the User object but for a specific rep in context.

To reference the internal ID that Spiff uses for a user, use `user.id` or `rep.id`.

If you sync data with Salesforce, reference the Salesforce User object with `user.Id` or `rep.Id`.