> ## Documentation Index
> Fetch the complete documentation index at: https://docs.costory.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Teams

> Scope cloud costs, default metrics, and dashboards per team so every stakeholder sees the data that matters to them.

A single cost view rarely works for an entire organization. Your backend squad needs Contracted Cost (A stable cost metric that reflects actual resource usage without Savings Plan fluctuations.) scoped to their services, while finance needs Billed Cost across everything. **Teams** let you configure those defaults once so each group lands on the right numbers without manual filtering.

![Setting up a team and assigning a cost scope in Costory](https://mintcdn.com/costory/i5MUtMkq3xlM3l_D/features/teams/team_demo.gif?s=daf24819a8650bbcb5e36b48d00a5996)

Setting up a team with a cost scope in Costory

## Overview

A Team is a group of users that share three things: a default cost metric (Contracted, Effective, or Billed) applied across all screens, one or more cost scopes that pre-filter every view to the team's perimeter, and a set of dashboards they work from. Who can view or edit a dashboard is set on the object with **Reader**, **Editor**, or **Can manage**, or by making it public. See [Share cost views](https://docs.costory.io/features/sharing.md#who-can-view-or-edit).

If you are looking for where Teams and other admin pages live in the app, see [Settings](https://docs.costory.io/get-started/settings.md). To invite someone to the Costory organization first, click the **account name** in the left sidebar and open **Invites**. This is available to **Admin** users. After they join, add them to a team.

> [!NOTE]
>
> When a user belongs to multiple teams, the first team they were added to provides the default scope.

## Get started

**1. Create a team**

> [tab] UI
>
> Navigate to **Settings > Teams** and click **Create Team**. Give the team a name, an optional description, and choose its visibility.
>
> ![Creating a new team in Costory](https://mintcdn.com/costory/i5MUtMkq3xlM3l_D/features/teams/create.png?fit=max\&auto=format\&n=i5MUtMkq3xlM3l_D\&q=85\&s=eac440c73bd66514c56006b3dfc49824)
>
> Creating a new team in Costory

> [tab] Terraform
>
> ```hcl theme={null}
> terraform {
>   required_providers {
>     costory = {
>       source  = "costory-io/costory"
>       version = ">= 0.1.0"
>     }
>   }
> }
>
> variable "costory_api_token" {
>   type        = string
>   description = "Costory API token."
>   sensitive   = true
> }
>
> provider "costory" {
>   token = var.costory_api_token
> }
>
> # Public team
> resource "costory_team" "engineering" {
>   name        = "Engineering"
>   description = "All engineering members"
>   visibility  = "PUBLIC"
> }
> ```
>
> ```hcl theme={null}
> terraform {
>   required_providers {
>     costory = {
>       source  = "costory-io/costory"
>       version = ">= 0.1.0"
>     }
>   }
> }
>
> variable "costory_api_token" {
>   type        = string
>   description = "Costory API token."
>   sensitive   = true
> }
>
> provider "costory" {
>   token = var.costory_api_token
> }
>
> # Public team
> resource "costory_team" "engineering" {
>   name        = "Engineering"
>   description = "All engineering members"
>   visibility  = "PUBLIC"
> }
> ```

**2. Add members**

> [tab] UI
>
> Open your team in **Settings > Teams** and click **Add member**. Invite members by email and assign each person a role.
>
> ![Data team detail page in Costory showing two members with Owner and Member roles, PUBLIC visibility, and Contracted Cost as the default metric](https://mintcdn.com/costory/i5MUtMkq3xlM3l_D/features/teams/team_members.png?fit=max\&auto=format\&n=i5MUtMkq3xlM3l_D\&q=85\&s=24d3072890b76269811391d274bb0b89)
>
> Team detail page showing members, roles, and the team's default cost metric
>
> | Role | Permissions |
> | - | - |
> | **Owner** | Add/remove members, manage scopes, edit team settings |
> | **Member** | Use team scopes, view and edit team dashboards |

> [tab] Terraform
>
> ```hcl theme={null}
> terraform {
>   required_providers {
>     costory = {
>       source  = "costory-io/costory"
>       version = ">= 0.1.0"
>     }
>   }
> }
>
> variable "costory_api_token" {
>   type        = string
>   description = "Costory API token."
>   sensitive   = true
> }
>
> provider "costory" {
>   token = var.costory_api_token
> }
>
> resource "costory_team" "engineering" {
>   name       = "Engineering"
>   visibility = "PRIVATE"
> }
>
> variable "team_members" {
>   type = map(object({
>     email = string
>     role  = string
>   }))
>   default = {
>     alice = { email = "alice@example.com", role = "OWNER" }
>     bob   = { email = "bob@example.com", role = "MEMBER" }
>     carol = { email = "carol@example.com", role = "MEMBER" }
>   }
> }
>
> resource "costory_team_member" "members" {
>   for_each = var.team_members
>
>   team_id = costory_team.engineering.id
>   email   = each.value.email
>   role    = each.value.role
> }
> ```
>
> ```hcl theme={null}
> terraform {
>   required_providers {
>     costory = {
>       source  = "costory-io/costory"
>       version = ">= 0.1.0"
>     }
>   }
> }
>
> variable "costory_api_token" {
>   type        = string
>   description = "Costory API token."
>   sensitive   = true
> }
>
> provider "costory" {
>   token = var.costory_api_token
> }
>
> resource "costory_team" "engineering" {
>   name       = "Engineering"
>   visibility = "PRIVATE"
> }
>
> variable "team_members" {
>   type = map(object({
>     email = string
>     role  = string
>   }))
>   default = {
>     alice = { email = "alice@example.com", role = "OWNER" }
>     bob   = { email = "bob@example.com", role = "MEMBER" }
>     carol = { email = "carol@example.com", role = "MEMBER" }
>   }
> }
>
> resource "costory_team_member" "members" {
>   for_each = var.team_members
>
>   team_id = costory_team.engineering.id
>   email   = each.value.email
>   role    = each.value.role
> }
> ```

**3. Assign cost scopes**

Scopes are persistent filters that apply by default whenever a team member opens [Explorer](https://docs.costory.io/features/cost-explorer.md), a dashboard, or any cost view. They define the team's cost boundary: for example, only the AWS accounts or GCP projects the team owns.

![Explorer with a team scope 'ML stack' applied as a persistent filter in the Where clause](https://mintcdn.com/costory/i5MUtMkq3xlM3l_D/features/teams/scope.png?fit=max\&auto=format\&n=i5MUtMkq3xlM3l_D\&q=85\&s=eec572c0fe7fe0a37235d51bc6bb83ca)

The scope 'ML stack' applied as a default filter in Explorer

To add a scope:

1. Go to **Settings > Teams** and select your team.
2. Click **Add Scope** and define the filter conditions.
3. Save. The scope applies by default to every view for all team members.

You can assign multiple scopes per team, for example one for compute resources and another for storage.

> [!TIP]
>
> Team members can temporarily remove a scope to see organization-wide costs. The scope is re-applied automatically when they open a new view.

## Key capabilities

### Default cost metric per team

Different stakeholders need different [cost metrics](https://docs.costory.io/docs/cost-metrics). With Teams, you set the default once and it applies across Explorer, dashboards, and Digest.

Engineering teams typically default to Contracted Cost (A stable cost metric that reflects actual resource usage without Savings Plan fluctuations.), which is stable and reflects actual resource usage without [Savings Plan fluctuations](https://docs.costory.io/docs/savings-plan-cost-fluctuation.md). Finance teams prefer Effective Cost or Billed Cost, which reflects what is actually invoiced.

Individual users can still switch metrics on the fly. For a guide on matching metrics to personas, see [Cost Metrics Per Persona](https://docs.costory.io/use-cases/show_the_correct_cost_metric_to_each_persona.md).

### Persistent cost scopes

Common scope patterns include scoping by AWS account or GCP project to match the team's ownership, by cloud service (e.g., SageMaker, BigQuery), by dimension (Costory reporting fields used to filter, group, allocate, scope, alert, and report on costs.) such as `team = ML` using [Dimensions](https://docs.costory.io/features/tagging/dimensions.md), or by Kubernetes namespace.

### Shared dashboards and views

Assign dashboards to a team so members open the right views with the team's default scope. Access is still granted on each dashboard: add members as **Reader**, **Editor**, or **Can manage**, or make the dashboard public to the organization. See [Share cost views](https://docs.costory.io/features/sharing.md).

![Costory dashboard owned by the Data team showing description, team ownership, labels, and the ML stack scope](https://mintcdn.com/costory/i5MUtMkq3xlM3l_D/features/teams/dashboard_owned_by_team.png?fit=max\&auto=format\&n=i5MUtMkq3xlM3l_D\&q=85\&s=0fc041d1ee939f4731fcf7c3ab365543)

A dashboard owned by the Data team, with the 'ML stack' scope applied

Team assignment does not replace object permissions. Grant the people who need the dashboard a role on that dashboard.

## Manage teams

### Edit a team

Open **Settings > Teams** and select the team you want to modify. From there you can rename the team, update its description, change its visibility (Public or Private), and update the default cost metric.

In Terraform, update the corresponding `costory_team` resource attributes and run `terraform apply`.

### Delete a team

Open **Settings > Teams**, select the team, and click **Delete Team**. Deleting a team removes all scopes and unlinks all dashboards. Members are not deleted from Costory. Dashboard access stays on each object, so review [permissions](https://docs.costory.io/features/sharing.md#who-can-view-or-edit) after you delete a team.

> [!WARNING]
>
> Deleting a team cannot be undone. Make sure to reassign any dashboards you want to keep before deleting.

In Terraform, remove the `costory_team` resource from your configuration and run `terraform apply`.

### Roles and permissions

| Role | Members | Scopes | Team settings | Dashboards |
| - | - | - | - | - |
| **Owner** | Add and remove | Create, edit, delete | Edit name, description, visibility, default metric | Does not grant dashboard access by itself |
| **Member** | View only | View only | View only | Does not grant dashboard access by itself |

Owners have full control over the team configuration. Members can use the team's scopes. Grant **Reader**, **Editor**, or **Can manage** on each dashboard those people should open. See [Share cost views](https://docs.costory.io/features/sharing.md#who-can-view-or-edit). Both roles can temporarily remove a scope to see organization-wide costs.

## Frequently Asked Questions

> [accordion] What happens when a user belongs to multiple teams?
>
> The first team the user was added to provides the default scope. The user can still access dashboards and scopes from all their teams.

> [accordion] Can team members remove a scope temporarily?
>
> Yes. Scopes apply by default, but any team member can remove the scope filter to see organization-wide costs. The scope is re-applied when they navigate to a new view.

> [accordion] Do Cost Reports inherit team scopes?
>
> Team scopes are applied when a team member creates a [Cost Report](https://docs.costory.io/features/slack-reports) or a saved View. Alerts and scheduled reports cannot be owned by a team yet, so they are managed per user.

> [accordion] What is the difference between PUBLIC and PRIVATE team visibility?
>
> **Public** and **Private** on a team control whether the team itself is visible in the organization. They do not decide who can open a dashboard. Grant **Reader**, **Editor**, or **Can manage** on the dashboard, or make that dashboard public. See [Share cost views](https://docs.costory.io/features/sharing.md#who-can-view-or-edit).

> [accordion] Can I manage team scopes via Terraform?
>
> Not yet. Scopes are currently managed through the UI. Team creation and member assignment are available via the [Costory Terraform provider](#create-a-team).

## Next Steps

> [card] [Sharing](https://docs.costory.io/features/sharing.md)
>
> Grant Reader, Editor, or Can manage on dashboards and other objects.

> [card] [Settings](https://docs.costory.io/get-started/settings.md)
>
> Find Teams, Data Integrations, API Keys, and Plan & Invoices.

> [card] [Explorer](https://docs.costory.io/features/cost-explorer.md)
>
> Explore your costs with team scopes applied by default

> [card] [Tag & Allocate Costs](https://docs.costory.io/features/tagging.md)
>
> Build the dimensions that power your team scopes

> [card] [Cost Metrics Per Persona](https://docs.costory.io/use-cases/show_the_correct_cost_metric_to_each_persona.md)
>
> Match the right cost metric to each stakeholder

> [card] [Cost Metrics Reference](https://docs.costory.io/docs/cost-metrics)
>
> Understand Contracted, Effective, and Billed costs


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.